/[pdpsoft]/trunk/grid-mw-security/ees/include/common/_aos.h
ViewVC logotype

Contents of /trunk/grid-mw-security/ees/include/common/_aos.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1307 - (show annotations) (download) (as text)
Thu Dec 17 13:10:53 2009 UTC (12 years, 7 months ago) by okoeroo
File MIME type: text/x-csrc
File size: 1642 byte(s)
Added new debugging functions to dump the content of an AOS tree in the log file
1 /*!
2
3 \file _aos.h
4 \brief Private library functions of the AOS (Attribute Object Store)
5 \author Aram Verstegen
6
7 This header contains some private functions of the Attribute Object Store.
8 It contains the following functions:
9 -# AOS_buffer_size(arg_type): returns size of buffer needed to store an argument of arg_type;
10 -# AOS_free_argslist(void): Free's linkedlist nodes that have malloc-ed buffers.
11 -# AOS_get_last_node(void): Returns last node in the linkedlist.
12 -# AOS_is_initialized(void): Returns 1 if the AOS list is initialized, 0 if it isn't. This might be deprecated now that the AOS uses a linked list rather than an array.
13 */
14
15 #ifndef _AOS_H
16 #define _AOS_H
17 #if HAVE_CONFIG_H
18 #include "config.h"
19 #endif
20 #if HAVE_STRING_H
21 #include <string.h>
22 #endif
23 #if HAVE_STDIO_H
24 #include <stdio.h>
25 #endif
26 #if HAVE_STDLIB_H
27 #include <stdlib.h>
28 #endif
29 #if HAVE_ERRNO_H
30 #include <errno.h>
31 #endif
32 #include "eef_polytypes.h"
33 #include "eef_log.h"
34
35 static int _is_initialized;
36 static int _is_threaded;
37 static unsigned int * size_assertions;
38 static unsigned int * size_obligations;
39 static aos_argument_t * list_assertions;
40 static aos_argument_t * list_obligations;
41
42 size_t aos_buffer_size(eef_arg_type);
43 void aos_free_argslist(aos_argument_t **head_node, unsigned int *args_size);
44 aos_argument_t * aos_get_last_node(aos_argument_t **head_node, unsigned int *args_size);
45 int aos_is_initialized(void);
46 int aos_is_threaded(void);
47
48 EES_RC aos_dump_argslists (void);
49 EES_RC aos_dump_argslist (aos_argument_t **, unsigned int *);
50
51 #endif
52

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28