diff options
author | Martin Willi <martin@strongswan.org> | 2006-04-10 08:07:38 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-04-10 08:07:38 +0000 |
commit | 5113680f95e522c677cdd37072cfffbdca06831e (patch) | |
tree | 973ac57accbc66b042e5307942c6cbbbf4f19579 /Source/lib/definitions.h | |
parent | 6862128151fb78f63685a8da5575783c426d64a7 (diff) | |
download | strongswan-5113680f95e522c677cdd37072cfffbdca06831e.tar.bz2 strongswan-5113680f95e522c677cdd37072cfffbdca06831e.tar.xz |
- split up in libstrong, charon, stroke, testing done
- new leak detective with malloc hook in library
- useable, but needs improvements
- logger_manager has now a single instance per library
- allows use of loggers from any linking prog
- a LOT of other things
Diffstat (limited to 'Source/lib/definitions.h')
-rw-r--r-- | Source/lib/definitions.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/Source/lib/definitions.h b/Source/lib/definitions.h index 2acec8d0a..11bd04f74 100644 --- a/Source/lib/definitions.h +++ b/Source/lib/definitions.h @@ -202,12 +202,27 @@ */ #define POS printf("%s, line %d\n", __FILE__, __LINE__) + + + /** - * Papping entry which defines the end of a mapping_t array. + * Macro to allocate a type as chunk_t. + * + * @param thing object on which a sizeof is performed + * @return chunk_t pointing to allocated memory */ -#define MAPPING_END (-1) +#define malloc_thing(thing) ((thing*)malloc(sizeof(thing))) + + + + +/** + * Mapping entry which defines the end of a mapping_t array. + */ +#define MAPPING_END (-1) + typedef struct mapping_t mapping_t; /** |