X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e38d01e7b27d128a6d756194166ce8e0445a33b2..15c81e44412415173de220954a453019c68714cd:/include/amok/base.h diff --git a/include/amok/base.h b/include/amok/base.h index e91010a1b3..8d115ac3eb 100644 --- a/include/amok/base.h +++ b/include/amok/base.h @@ -1,12 +1,10 @@ -/* $Id$ */ - /* amok_base - things needed in amok, but too small to constitute a module */ -/* Authors: Martin Quinson */ -/* Copyright (C) 2003, 2004 the OURAGAN project. */ +/* Copyright (c) 2004, 2005, 2006, 2007, 2010. The SimGrid Team. + * 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 AMOK_BASE_H #define AMOK_BASE_H @@ -17,24 +15,6 @@ * The common types used as payload in the messages and their definitions * ****************************************************************************/ -/** - * amok_remoterr_t: - * - * how to indicate an eventual error - */ - -typedef struct { - char *msg; - unsigned int code; -} s_amok_remoterr_t,*amok_remoterr_t; - -amok_remoterr_t amok_remoterr_new(gras_error_t errcode, - const char* format, ...); -amok_remoterr_t amok_remoterr_new_va(gras_error_t param_errcode, - const char* format,va_list ap); -void amok_remoterr_free(amok_remoterr_t *err); - - /** * amok_result_t: * @@ -46,27 +26,8 @@ typedef struct { double value; } amok_result_t; -/** - * amok_repport_error: - * - * Repports an error to the process listening on socket sock. - * - * The information will be embeeded in a message of type id, which must take a msgError_t as first - * sequence (and SeqCount sequences in total). Other sequences beside the error one will be of - * length 0. - * - * The message will be builded as sprintf would, using the given format and extra args. - * - * If the message cannot be builded and sent to recipient, the string severeError will be printed - * on localhost's stderr. - */ -void -amok_repport_error (gras_socket_t sock, gras_msgtype_t msgtype, - gras_error_t errcode, const char* format,...); - - -void amok_base_init(void); -void amok_base_exit(void); +XBT_PUBLIC(void) amok_base_init(void); +XBT_PUBLIC(void) amok_base_exit(void); -#endif /* AMOK_BASE_H */ +#endif /* AMOK_BASE_H */