summaryrefslogtreecommitdiff
path: root/src/ivyargument.h
diff options
context:
space:
mode:
authorfcolin2005-08-10 09:52:18 +0000
committerfcolin2005-08-10 09:52:18 +0000
commitc271c5a2383450c2a39e126ebef38d8dd2e2f8e6 (patch)
tree46eaf3e4a9fc79a47bfd9e8942cef981908f304f /src/ivyargument.h
parentb0954d7461dc709cd1a43097c260c8e8b0183cee (diff)
downloadivy-c-c271c5a2383450c2a39e126ebef38d8dd2e2f8e6.zip
ivy-c-c271c5a2383450c2a39e126ebef38d8dd2e2f8e6.tar.gz
ivy-c-c271c5a2383450c2a39e126ebef38d8dd2e2f8e6.tar.bz2
ivy-c-c271c5a2383450c2a39e126ebef38d8dd2e2f8e6.tar.xz
remplacement argc argv par IvyArgument
Diffstat (limited to 'src/ivyargument.h')
-rwxr-xr-xsrc/ivyargument.h20
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