Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Put all typedef of generic callbacks in the same place
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 24 Oct 2005 22:20:25 +0000 (22:20 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 24 Oct 2005 22:20:25 +0000 (22:20 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1833 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/surf/surf_parse.h
include/xbt/misc.h

index 65eaa85..423f0e3 100644 (file)
@@ -9,8 +9,8 @@
 #define _SURF_SURF_PARSE_H
 
 #include "surf/surfxml.h"
+#include "xbt/misc.h"
 
-typedef   int (*int_f_void_t)(void);
 extern int_f_void_t surf_parse;
 
 #endif
index a4fa1b5..8c2709a 100644 (file)
@@ -84,11 +84,16 @@ typedef struct {
 
 const char *xbt_procname(void);
 
-   /** \brief Pointer to a function freeing a pointed data */
+
+/* Generic function type */
+
    typedef void (void_f_ppvoid_t)(void**);
-   /** \brief Pointer to a function freeing some data */
-   typedef   void (void_f_pvoid_t) (void*);
+   typedef void (void_f_pvoid_t) (void*);
 
+   typedef int  (int_f_pvoid_pvoid_t) (void*,void*);
+   
+   typedef int  (*int_f_void_t)   (void); /* FIXME: rename it to int_pf_void_t */
+   
 SG_END_DECL()
 
 #endif /* XBT_MISC_H */