* -# Callback Persistant State: Simple push/pop mechanism
* -# Callback Persistant State: Full featured mechanism
*/
-/*@{*/
+/* @{*/
/** @name 1. basic operations
*
*/
#define GRAS_ANNOTE(key,val)
-/*@}*/
+/* @} */
gras_datadesc_type_t
gras_datadesc_parse(const char *name, const char *C_statement);
[Use my_type to send pointers to mystruct data]\endverbatim
*/
-/*@{*/
+/* @{ */
/** \brief Opaque type describing a type description callback persistant state. */
/** \brief Returns the identifier of a datadescription */
int gras_datadesc_get_id(gras_datadesc_type_t ddt);
-/*@}*/
+/* @} */
/** @name 4. Callback Persistant State: Simple push/pop mechanism
*
\endverbatim
*/
-/*@{*/
+/* @{ */
void
gras_cbps_i_push(gras_cbps_t ps, int val);
void gras_datadesc_cb_push_ulint(gras_cbps_t vars, void *data);
-/*@}*/
+/* @} */
/** @name 5. Callback Persistant State: Full featured mechanism
*
* introduced in previous section isn't enough, you can always use this full featured one.
*/
-/*@{*/
+/* @{ */
xbt_error_t
gras_cbps_v_pop (gras_cbps_t ps,
gras_cbps_block_end(gras_cbps_t ps);
/* @} */
-/*@}*/
+/* @} */
/*******************************
void *payload);
xbt_error_t gras_msg_handle(double timeOut);
-/*@}*/
+/* @} */
END_DECL()
#ifndef GRAS_PROCESS_H
#define GRAS_PROCESS_H
-#include "xbt/misc.h" /* BEGIN_DECL */
+#include "xbt/misc.h" /* BEGIN_DECL */
+#include "xbt/error.h" /* xbt_error_t */
BEGIN_DECL()
* and use \ref gras_userdata_set yourself), and \ref gras_userdata_get to
* retrive a reference to it.
*/
-/*@{*/
+/* @{ */
/**
* \brief Get the data associated with the current process.
/** \brief Malloc and set the data associated with the current process. */
#define gras_userdata_new(type) (gras_userdata_set(xbt_new0(type,1)),gras_userdata_get())
-/*@}*/
+/* @} */
END_DECL()
/** \name Socket creation functions
* \ingroup GRAS_sock
*/
-/*@{*/
+/* @{*/
/** \brief Opaque type describing a socket */
typedef struct s_gras_socket *gras_socket_t;
unsigned long int bufSize,
int raw,
/* OUT */ gras_socket_t *dst);
-/*@}*/
+/* @}*/
/** \name Retrieving data about sockets and peers
* \ingroup GRAS_sock
*
* Who are you talking to?
*/
-/*@{*/
+/* @{*/
/** Get the port number on which this socket is connected on my side */
int gras_socket_my_port (gras_socket_t sock);
int gras_socket_peer_port(gras_socket_t sock);
/** Get the host name of the remote side */
char *gras_socket_peer_name(gras_socket_t sock);
-/*@}*/
+/* @}*/
/** \name Using raw sockets
* \ingroup GRAS_sock
*
* \bug Raw sockets are not fully functionnal yet.
*/
-/*@{*/
+/* @{*/
xbt_error_t gras_socket_raw_send(gras_socket_t peer,
unsigned int timeout,
unsigned long int expSize,
unsigned long int msgSize);
-/*@}*/
+/* @}*/
/** \name Using files as sockets
* \ingroup GRAS_sock
*
* \bug Don't use '-' on windows. this file represents stdin or stdout, but I failed to deal with it on windows.
*/
-/*@{*/
+/* @{*/
/* debuging functions */
xbt_error_t gras_socket_client_from_file(const char*path,
/* OUT */ gras_socket_t *dst);
xbt_error_t gras_socket_server_from_file(const char*path,
/* OUT */ gras_socket_t *dst);
-/*@}*/
+/* @} */
#endif /* GRAS_TRANSPORT_H */