diff options
Diffstat (limited to 'src/ivyargument.h')
-rwxr-xr-x | src/ivyargument.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/ivyargument.h b/src/ivyargument.h index e54a444..693d34b 100755 --- a/src/ivyargument.h +++ b/src/ivyargument.h @@ -1,7 +1,7 @@ /* * Ivy, C interface * - * Copyright (C) 1997-2000 + * Copyright (C) 1997-2005 * Centre d'Études de la Navigation Aérienne * * Argument message comtent @@ -13,16 +13,22 @@ * Please refer to file version.h for the * copyright notice regarding this software */ - +#ifndef IVY_ARGUMENT_H +#define IVY_ARGUMENT_H /* Module de gestion de la syntaxe des messages Ivy */ typedef struct _argument *IvyArgument; -IvyArgument IvyArgumentNew( const char * expression ); +IvyArgument IvyArgumentNew( int len, const void * value ); void IvyArgumentFree( IvyArgument arg ); -const char * IvyArgumentGetValue( IvyArgument arg ); +int IvyArgumentGetChildCount( IvyArgument arg ); +void IvyArgumentGetValue( IvyArgument arg, int * len, const void **val ); +IvyArgument IvyArgumentGetChildrens( IvyArgument arg ); IvyArgument IvyArgumentGetNextChild( IvyArgument arg ); -IvyArgument IvyAddChild( IvyArgument arg, const char* childvalue ); -IvyArgument IvyArgumentDeserialize( int fd ); -void IvyArgumentSerialize(IvyArgument arg, int fd ); +void IvyAddChild( IvyArgument arg, IvyArgument child ); +IvyArgument IvyAddChildValue( IvyArgument arg, int childvaluelen, const void* childvalue ); + +IvyArgument IvyArgumentDeserialize( int buf_len, void* buffer, int * buf_adv); +int IvyArgumentSerialize(IvyArgument arg, int *buf_len, void **buffer, int offset); +#endif
\ No newline at end of file |