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 |
#include <string.h> |
18 |
#include <stdio.h> |
19 |
#include <stdlib.h> |
20 |
#include <errno.h> |
21 |
#include "polytypes.h" |
22 |
#include "ng_log.h" |
23 |
|
24 |
static argument_t * args_list; |
25 |
static int _is_initialized; |
26 |
static unsigned int args_size; |
27 |
|
28 |
size_t AOS_buffer_size(arg_type); |
29 |
void AOS_free_argslist(void); |
30 |
argument_t * AOS_get_last_node(void); |
31 |
int AOS_is_initialized(void); |
32 |
|
33 |
#endif |
34 |
|