summaryrefslogtreecommitdiff
path: root/src/ivybuffer.h
diff options
context:
space:
mode:
authorfourdan2007-01-29 10:09:59 +0000
committerfourdan2007-01-29 10:09:59 +0000
commit68e3c0ed570ba3e994f8a1c4b20594372fb0b514 (patch)
tree8d6c0d6876340742ea6f49dc9faa40aef9855563 /src/ivybuffer.h
parent6fc08ea508e4fa39a9bf7f5495e84a68bd0bf88a (diff)
parentf70181ffe0b37952384ff5e0ce0185541828014f (diff)
downloadivy-c-68e3c0ed570ba3e994f8a1c4b20594372fb0b514.zip
ivy-c-68e3c0ed570ba3e994f8a1c4b20594372fb0b514.tar.gz
ivy-c-68e3c0ed570ba3e994f8a1c4b20594372fb0b514.tar.bz2
ivy-c-68e3c0ed570ba3e994f8a1c4b20594372fb0b514.tar.xz
Rename protocol_v3 as trunk to avoid confusion on protocol version to use.
Diffstat (limited to 'src/ivybuffer.h')
-rw-r--r--src/ivybuffer.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/ivybuffer.h b/src/ivybuffer.h
new file mode 100644
index 0000000..86c5474
--- /dev/null
+++ b/src/ivybuffer.h
@@ -0,0 +1,39 @@
+/*
+ * Ivy, C interface
+ *
+ * Copyright 1997-2000
+ * Centre d'Etudes de la Navigation Aerienne
+ *
+ * Sockets
+ *
+ * Authors: Francois-Regis Colin <fcolin@cena.dgac.fr>
+ *
+ * $Id$
+ *
+ * Please refer to file version.h for the
+ * copyright notice regarding this software
+ */
+
+#ifndef IVYBUFFER_H
+#define IVYBUFFER_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stdarg.h>
+typedef struct {
+ char * data;
+ int size;
+ int offset;
+ } IvyBuffer;
+/* utility fonction do make vsprintf without buffer limit */
+extern int make_message(IvyBuffer * buffer, const char *fmt, va_list ap);
+extern int make_message_var(IvyBuffer* buffer, const char *fmt, ...);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+