X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b1acf7fe2f1886e9adcb4313f53548c9995a906c..c95af2aa8d7618ca682fd1dadee72afd4847c0f5:/src/gras/Msg/msg_private.h diff --git a/src/gras/Msg/msg_private.h b/src/gras/Msg/msg_private.h index b233e1c606..74917aeff8 100644 --- a/src/gras/Msg/msg_private.h +++ b/src/gras/Msg/msg_private.h @@ -4,24 +4,36 @@ /* module's private interface masked even to other parts of GRAS. */ -/* Authors: Martin Quinson */ -/* Copyright (C) 2003, 2004 Martin Quinson. */ +/* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it - under the terms of the license (GNU LGPL) which comes with this package. */ + * under the terms of the license (GNU LGPL) which comes with this package. */ #ifndef GRAS_MESSAGE_PRIVATE_H #define GRAS_MESSAGE_PRIVATE_H -#include "gras_private.h" -#include "Msg/msg_interface.h" +#include "gras_config.h" + +#include "xbt/sysdep.h" +#include "xbt/log.h" +#include "xbt/error.h" +#include "xbt/dynar.h" +#include "xbt/set.h" +#include "gras/transport.h" +#include "gras/datadesc.h" +#include "gras/virtu.h" + +#include "gras/messages.h" +#include "gras_modinter.h" + +#include "gras/Msg/msg_interface.h" /** * gras_msgtype_t: * * Message type descriptor. There one of these for each registered version. */ -struct s_gras_msgtype { +typedef struct s_gras_msgtype { /* headers for the data set */ unsigned int code; char *name; @@ -29,17 +41,17 @@ struct s_gras_msgtype { /* payload */ short int version; - gras_datadesc_type_t *ctn_type; -}; + gras_datadesc_type_t ctn_type; +} s_gras_msgtype_t; -extern gras_set_t *_gras_msgtype_set; /* of gras_msgtype_t */ +extern xbt_set_t _gras_msgtype_set; /* of gras_msgtype_t */ void gras_msgtype_free(void *msgtype); -gras_error_t gras_msg_recv(gras_socket_t *sock, - gras_msgtype_t **msgtype, - void **payload); - +xbt_error_t gras_msg_recv(gras_socket_t sock, + gras_msgtype_t *msgtype, + void **payload, + int *payload_size); /** * gras_cblist_t: @@ -48,7 +60,7 @@ gras_error_t gras_msg_recv(gras_socket_t *sock, */ struct s_gras_cblist { long int id; - gras_dynar_t *cbs; /* of gras_msg_cb_t */ + xbt_dynar_t cbs; /* of gras_msg_cb_t */ }; void gras_cblist_free(void *cbl);