OSSP CVS Repository

ossp - Check-in [4178]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4178
Date: 2001-Jul-09 19:19:26 (local)
2001-Jul-09 17:19:26 (UTC)
User:simons
Branch:
Comment: - Added XDS_ERR_INVALID_MODE define.

- Renamed argument in the xds_getbuffer() prototype from buffer_size to buffer_len for consistency.

Tickets:
Inspections:
Files:
ossp-pkg/xds/xds.h      1.13 -> 1.14     4 inserted, 3 deleted

ossp-pkg/xds/xds.h 1.13 -> 1.14

--- 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, ...);

CVSTrac 2.0.1