Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
adapt the prototypes of the declaration to the prototypes of the definition
[simgrid.git] / include / xbt / function_types.h
1 /* $Id$ */
2
3 /* function_type.h - classical types for pointer to function                */
4
5 /* Copyright (c) 2004-2006 Martin Quinson.                                  */
6 /* Copyright (c) 2004 Arnaud Legrand.                                       */
7 /* 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 XBT_FUNCTION_TYPE_H
13 #define XBT_FUNCTION_TYPE_H
14
15 #include "xbt/misc.h"
16
17 SG_BEGIN_DECL()
18
19    typedef void  (void_f_ppvoid_t)(void**);
20    typedef void  (void_f_pvoid_t) (void*);
21    typedef void* (pvoid_f_void_t)(void);
22    typedef void* (pvoid_f_pvoid_t)(void*);
23    typedef void  (void_f_void_t) (void);
24
25    typedef int   (int_f_void_t)   (void);
26
27    typedef int  (int_f_pvoid_pvoid_t) (void*,void*);
28
29    typedef int  (*xbt_main_func_t)(int argc, char *argv[]);
30 SG_END_DECL()
31
32 #endif /* XBT_FUNCTION_TYPE_H */