Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
module init/exit functions are now in gras_private directly
[simgrid.git] / src / gras / Msg / msg_interface.h
1 /* $Id$ */
2
3 /* messaging - high level communication (send/receive messages)             */
4
5 /* module's public interface exported within GRAS, but not to end user.     */
6
7 /* Authors: Martin Quinson                                                  */
8 /* Copyright (C) 2003, 2004 Martin Quinson.                                 */
9
10 /* This program is free software; you can redistribute it and/or modify it
11    under the terms of the license (GNU LGPL) which comes with this package. */
12
13 #ifndef GRAS_MSG_INTERFACE_H
14 #define GRAS_MSG_INTERFACE_H
15
16 /* gras_msg_t is dereferenced to be stored in procdata, living in Virtu */
17 typedef struct {
18   gras_socket_t  *expeditor;
19   gras_msgtype_t *type;
20   void           *payload;
21   int             payload_size;
22 } gras_msg_t;
23
24 gras_error_t gras_msg_send_namev(gras_socket_t *sock, 
25                                  const char    *namev, 
26                                  void          *payload);
27
28 #define GRAS_PROTOCOL_VERSION '\0';
29
30 typedef struct s_gras_cblist gras_cblist_t;
31 void gras_cbl_free(void *); /* virtu use that to free the memory at the end */
32 #endif  /* GRAS_MSG_INTERFACE_H */