X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9f6cbb176d4301cae36a945dfa57e6b6a9cbafef..a4707c9458dd447b9efb70b68370616698360ce5:/include/xbt/lib.h diff --git a/include/xbt/lib.h b/include/xbt/lib.h index 2c971abaca..56a900786a 100644 --- a/include/xbt/lib.h +++ b/include/xbt/lib.h @@ -6,8 +6,8 @@ /* 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. */ -#ifndef _XBT_LIB_H -#define _XBT_LIB_H +#ifndef XBT_LIB_H +#define XBT_LIB_H #include @@ -48,11 +48,13 @@ SG_BEGIN_DECL() * xbt_lib_set(foo_lib, id, AUTH_FOO_LEVEL, auth); * */ -typedef struct s_xbt_lib { +struct s_xbt_lib { xbt_dict_t dict; int levels; void_f_pvoid_t *free_f; /* This is actually a table */ -} s_xbt_lib_t, *xbt_lib_t; +}; +typedef struct s_xbt_lib s_xbt_lib_t; +typedef struct s_xbt_lib* xbt_lib_t; #define xbt_lib_cursor_t xbt_dict_cursor_t @@ -74,4 +76,5 @@ XBT_PUBLIC(void) xbt_lib_remove(xbt_lib_t lib, const char *key); xbt_dict_foreach((lib)->dict, cursor, key, data) SG_END_DECL() + #endif /* _XBT_LIB_H */