A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement select over SG (badly since there is so few support within SG); Add stupid...
[simgrid.git]
/
src
/
gras
/
Transport
/
transport_private.h
diff --git
a/src/gras/Transport/transport_private.h
b/src/gras/Transport/transport_private.h
index
543f6be
..
9c144a2
100644
(file)
--- a/
src/gras/Transport/transport_private.h
+++ b/
src/gras/Transport/transport_private.h
@@
-18,7
+18,6
@@
extern gras_dynar_t *_gras_trp_sockets; /* all existing sockets */
extern gras_dynar_t *_gras_trp_sockets; /* all existing sockets */
-
/**
* s_gras_socket:
*
/**
* s_gras_socket:
*
@@
-31,6
+30,7
@@
struct s_gras_socket {
int incoming :1; /* true if we can read from this sock */
int outgoing :1; /* true if we can write on this sock */
int accepting :1; /* true if master incoming sock in tcp */
int incoming :1; /* true if we can read from this sock */
int outgoing :1; /* true if we can write on this sock */
int accepting :1; /* true if master incoming sock in tcp */
+ int raw :1; /* true if this is an experiment socket instead of messaging */
int sd;
int port; /* port on this side */
int sd;
int port; /* port on this side */
@@
-44,10
+44,10
@@
gras_error_t gras_trp_socket_new(int incomming,
gras_socket_t **dst);
/* The drivers */
gras_socket_t **dst);
/* The drivers */
-gras_error_t gras_trp_tcp_init(gras_trp_plugin_t **dst);
-gras_error_t gras_trp_file_init(gras_trp_plugin_t **dst);
-gras_error_t gras_trp_sg_init (gras_trp_plugin_t **dst);
-
+typedef gras_error_t (*gras_trp_setup_t)(gras_trp_plugin_t *dst);
+gras_error_t gras_trp_tcp_setup(gras_trp_plugin_t *plug);
+gras_error_t gras_trp_file_setup(gras_trp_plugin_t *plug);
+gras_error_t gras_trp_sg_setup(gras_trp_plugin_t *plug);
#endif /* GRAS_TRP_PRIVATE_H */
#endif /* GRAS_TRP_PRIVATE_H */