From c271c5a2383450c2a39e126ebef38d8dd2e2f8e6 Mon Sep 17 00:00:00 2001 From: fcolin Date: Wed, 10 Aug 2005 09:52:18 +0000 Subject: remplacement argc argv par IvyArgument --- src/ivyargument.h | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'src/ivyargument.h') 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 -- cgit v1.1