3 /* messaging - high level communication (send/receive messages) */
5 /* module's private interface masked even to other parts of GRAS. */
7 /* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */
9 /* This program is free software; you can redistribute it and/or modify it
10 * under the terms of the license (GNU LGPL) which comes with this package. */
12 #ifndef GRAS_MESSAGE_PRIVATE_H
13 #define GRAS_MESSAGE_PRIVATE_H
15 #include "gras_config.h"
17 #include "xbt/sysdep.h"
19 #include "xbt/error.h"
20 #include "xbt/dynar.h"
22 #include "gras/transport.h"
23 #include "gras/datadesc.h"
24 #include "gras/virtu.h"
26 #include "gras/messages.h"
27 #include "gras_modinter.h"
29 #include "gras/Msg/msg_interface.h"
34 * Message type descriptor. There one of these for each registered version.
36 typedef struct s_gras_msgtype {
37 /* headers for the data set */
40 unsigned int name_len;
44 gras_datadesc_type_t ctn_type;
47 extern xbt_set_t _gras_msgtype_set; /* of gras_msgtype_t */
48 void gras_msgtype_free(void *msgtype);
51 xbt_error_t gras_msg_recv(gras_socket_t sock,
52 gras_msgtype_t *msgtype,
59 * association between msg ID and cb list for a given process
61 struct s_gras_cblist {
63 xbt_dynar_t cbs; /* of gras_msg_cb_t */
66 void gras_cblist_free(void *cbl);
68 #endif /* GRAS_MESSAGE_PRIVATE_H */