Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change the prototype of xbt_thread_create(), sorry.
[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 (*void_f_int_pvoid_t) (int,void *);
22      typedef void *(*pvoid_f_void_t) (void);
23      typedef void *(*pvoid_f_pvoid_t) (void *);
24      typedef void (*void_f_void_t) (void);
25
26      typedef int (*int_f_void_t) (void);
27
28      typedef int (*int_f_pvoid_pvoid_t) (void *, void *);
29
30      typedef int (*xbt_main_func_t) (int argc, char *argv[]);
31
32 SG_END_DECL()
33 #endif /* XBT_FUNCTION_TYPE_H */