Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix (C) dates; minor documentation improvements
[simgrid.git] / testsuite / gras / gras_dummy.c
1 /* $Id$ */
2
3 /* gras_dummy - dummy implementation of function depending on the RL or SG, */
4 /*              so that we can build a dummy library to test the Utils      */
5
6 /* Copyright (c) 2004 Martin Quinson. All rights reserved.                  */
7
8 /* This program is free software; you can redistribute it and/or modify it
9  * under the terms of the license (GNU LGPL) which comes with this package. */
10
11 #include "gras_private.h"
12
13 xbt_error_t gras_process_init() {
14   return unknown_error;
15 }
16
17 xbt_error_t gras_process_exit() {
18   return unknown_error;
19 }
20
21 xbt_error_t gras_sock_client_open(const char *host, short port, 
22                                    /* OUT */ gras_sock_t **sock) {
23   return unknown_error;
24 }
25
26
27 xbt_error_t gras_sock_server_open(unsigned short startingPort, 
28                                    unsigned short endingPort,
29                                    /* OUT */ gras_sock_t **sock) {
30
31   return unknown_error;
32 }
33
34 xbt_error_t gras_sock_close(gras_sock_t *sock) {
35   return unknown_error;
36 }
37
38 unsigned short gras_sock_get_my_port(gras_sock_t *sd) {
39   return -1;
40 }
41
42 unsigned short gras_sock_get_peer_port(gras_sock_t *sd) {
43   return -1;
44 }
45
46 char * gras_sock_get_peer_name(gras_sock_t *sd) {
47   return NULL;
48 }
49
50 xbt_error_t grasMsgRecv(gras_msg_t **msg,
51                          double timeOut) {
52   return unknown_error;
53 }
54 xbt_error_t gras_msg_send(gras_sock_t *sd,
55                            gras_msg_t *msg,
56                            e_xbt_free_directive_t freeDirective) {
57   return unknown_error;
58 }
59 xbt_error_t gras_rawsock_server_open(unsigned short startingPort, 
60                                   unsigned short endingPort,
61                                   unsigned int bufSize, gras_rawsock_t **sock) {
62   return unknown_error;
63 }
64 xbt_error_t gras_rawsock_client_open(const char *host, short port, 
65                                   unsigned int bufSize, gras_rawsock_t **sock) {
66   return unknown_error;
67 }
68 xbt_error_t gras_rawsock_close(gras_rawsock_t *sd) {
69   return unknown_error;
70 }
71 unsigned short gras_rawsock_get_peer_port(gras_rawsock_t *sd) {
72   return -1;
73 }
74 xbt_error_t
75 gras_rawsock_recv(gras_rawsock_t *sd, unsigned int expSize, unsigned int msgSize, 
76                   unsigned int timeout) {
77   return unknown_error;
78 }
79 xbt_error_t
80 gras_rawsock_send(gras_rawsock_t *sd, unsigned int expSize, unsigned int msgSize){
81   return unknown_error;
82 }
83 gras_process_data_t *gras_process_data_get() {
84   return NULL;
85 }
86
87 double gras_time() {
88   return 0;
89 }
90
91 void gras_sleep(unsigned long sec,unsigned long usec) {}
92