Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
b757ded834f9188e9878d3f8b45368437005dbde
[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 /* Copyright (c) 2004 Martin Quinson. All rights reserved.                  */
8
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. */
11
12 #ifndef GRAS_MSG_INTERFACE_H
13 #define GRAS_MSG_INTERFACE_H
14
15 /* gras_msg_t is dereferenced to be stored in procdata, living in Virtu */
16 typedef struct {
17   gras_socket_t   expeditor;
18   gras_msgtype_t  type;
19   void           *payload;
20   int             payload_size;
21 } gras_msg_t;
22
23 xbt_error_t gras_msg_send_namev(gras_socket_t  sock, 
24                                  const char    *namev, 
25                                  void          *payload);
26
27 #define GRAS_PROTOCOL_VERSION '\0';
28
29 typedef struct s_gras_cblist gras_cblist_t;
30 void gras_cbl_free(void *); /* virtu use that to free the memory at the end */
31 #endif  /* GRAS_MSG_INTERFACE_H */