--- xds.h 2001/07/04 15:25:38 1.13
+++ xds.h 2001/07/09 17:19:26 1.14
@@ -40,7 +40,8 @@
XDS_ERR_OVERFLOW = -2,
XDS_ERR_INVALID_ARG = -3,
XDS_ERR_TYPE_MISMATCH = -4,
- XDS_ERR_UNKNOWN_ENGINE = -5
+ XDS_ERR_UNKNOWN_ENGINE = -5,
+ XDS_ERR_INVALID_MODE = -6
};
typedef enum { XDS_ENCODE, XDS_DECODE } xds_mode_t;
typedef enum { XDS_LOAN, XDS_GIFT } xds_scope_t;
@@ -60,8 +61,8 @@
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_size);
-int xds_getbuffer(xds_t* xds, xds_scope_t flag, void** buffer, size_t* buffer_size);
+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, ...);
int xds_decode(xds_t* xds, const char* fmt, ...);
|