/[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 1354 - (show annotations) (download) (as text)
Sat Jan 9 18:38:42 2010 UTC (12 years, 5 months ago) by aramv
File MIME type: text/x-csrc
File size: 1654 byte(s)
Removed lock because it's not used anymore
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 #if HAVE_PTHREAD_H
33 #include <pthread.h>
34 #endif
35 #if HAVE_UNISTD_H
36 #include <unistd.h>
37 #endif
38 #include "eef_polytypes.h"
39 #include "eef_log.h"
40
41 static int _is_initialized;
42 static int _is_threading;
43
44 pthread_key_t _aos_key;
45 pthread_once_t _aos_key_once;
46 static aos_storage_t * _global_storage;
47
48 EES_RC aos_free_storage(aos_storage_t*);
49 int aos_is_initialized(void);
50 void aos_start_threading(void);
51 aos_storage_t * aos_get_storage(void);
52 void aos_make_key(void);
53 void aos_clean_key(void *v);
54 void aos_free_key(aos_storage_t* storage);
55
56 EES_RC aos_dump_argslist (void);
57
58 #endif
59

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