OSSP CVS Repository

ossp - Difference in ossp-pkg/xds/xds.h.in versions 1.6 and 1.6.2.1
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/xds/xds.h.in 1.6 -> 1.6.2.1

--- xds.h.in     2001/07/31 15:27:45     1.6
+++ xds.h.in     2001/08/01 09:36:08     1.6.2.1
@@ -73,7 +73,7 @@
 int xds_register(xds_t* xds, const char* name, xds_engine_t engine, void* engine_context);
 int xds_unregister(xds_t* xds, const char* name);
 
-int xds_setbuffer(xds_t* xds, xds_scope_t flag, void*  buffer, size_t  buffer_len);
+int xds_setbuffer(xds_t* xds, xds_scope_t flag, void* buffer, size_t buffer_len);
 int xds_getbuffer(xds_t* xds, xds_scope_t flag, void** buffer, size_t* buffer_len);
 
 int xds_encode(xds_t* xds, const char* fmt, ...);
@@ -81,44 +81,43 @@
 int xds_vencode(xds_t* xds, const char* fmt, va_list args);
 int xds_vdecode(xds_t* xds, const char* fmt, va_list args);
 
-int xdr_encode_uint32(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-int xdr_encode_int32(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-int xdr_encode_uint64(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-int xdr_encode_int64(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-
-int xdr_decode_uint32(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-int xdr_decode_int32(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-int xdr_decode_uint64(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-int xdr_decode_int64(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-
-int xdr_encode_octetstream(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-int xdr_decode_octetstream(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-
-int xdr_encode_string(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-int xdr_decode_string(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-
-int xdr_encode_double(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-int xdr_decode_double(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-
-
-int xml_encode_int32(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-int xml_decode_int32(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-
-int xml_encode_uint32(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-int xml_decode_uint32(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-
-int xml_encode_int64(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-int xml_decode_int64(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-
-int xml_encode_uint64(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-int xml_decode_uint64(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-
-int xml_encode_double(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-int xml_decode_double(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-
-int xml_encode_begin(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-int xml_decode_begin(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-int xml_encode_end(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
-int xml_decode_end(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args);
+#define declare_formatting_engine(x) \
+    int x(xds_t* xds, void* engine_context, \
+          void* buffer, size_t buffer_size, /* size_t* used_buffer_size, */ \
+          va_list* args)
+
+declare_formatting_engine(xdr_encode_uint32);
+declare_formatting_engine(xdr_decode_uint32);
+declare_formatting_engine(xdr_encode_int32);
+declare_formatting_engine(xdr_decode_int32);
+declare_formatting_engine(xdr_encode_uint64);
+declare_formatting_engine(xdr_decode_uint64);
+declare_formatting_engine(xdr_encode_int64);
+declare_formatting_engine(xdr_decode_int64);
+declare_formatting_engine(xdr_encode_double);
+declare_formatting_engine(xdr_decode_double);
+declare_formatting_engine(xdr_encode_octetstream);
+declare_formatting_engine(xdr_decode_octetstream);
+declare_formatting_engine(xdr_encode_string);
+declare_formatting_engine(xdr_decode_string);
+
+declare_formatting_engine(xml_encode_begin);
+declare_formatting_engine(xml_decode_begin);
+declare_formatting_engine(xml_encode_end);
+declare_formatting_engine(xml_decode_end);
+declare_formatting_engine(xml_encode_uint32);
+declare_formatting_engine(xml_decode_uint32);
+declare_formatting_engine(xml_encode_int32);
+declare_formatting_engine(xml_decode_int32);
+declare_formatting_engine(xml_encode_uint64);
+declare_formatting_engine(xml_decode_uint64);
+declare_formatting_engine(xml_encode_int64);
+declare_formatting_engine(xml_decode_int64);
+declare_formatting_engine(xml_encode_double);
+declare_formatting_engine(xml_decode_double);
+declare_formatting_engine(xml_encode_octetstream);
+declare_formatting_engine(xml_decode_octetstream);
+declare_formatting_engine(xml_encode_string);
+declare_formatting_engine(xml_decode_string);
 
 #endif /* !defined(__LIBXDS_H__) */

CVSTrac 2.0.1