OSSP CVS Repository

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

Check-in Number: 4158
Date: 2001-Jul-08 16:09:42 (local)
2001-Jul-08 14:09:42 (UTC)
User:simons
Branch:
Comment: - Added definition of engine_map_t. - Added prototype for xds_find_engine(). - Renamed buffer_size to buffer_capacity in xds_context. - Added engine_map_t stuff to xds_context.
Tickets:
Inspections:
Files:
ossp-pkg/xds/internal.h      1.1 -> 1.2     19 inserted, 4 deleted

ossp-pkg/xds/internal.h 1.1 -> 1.2

--- internal.h   2001/07/04 16:05:06     1.1
+++ internal.h   2001/07/08 14:09:42     1.2
@@ -32,13 +32,28 @@
 
 #include "xds.h"
 
+typedef struct
+    {
+    char*        name;
+    xds_engine_t engine;
+    void*        context;
+    }
+engine_map_t;
+
 struct xds_context
     {
-    xds_mode_t mode;            /* XDS_ENCODE or XDS_DECODE */
+    xds_mode_t mode;
 
-    char*  buffer;              /* may be NULL if unallocated */
-    size_t buffer_size;         /* physical size of the buffer */
-    size_t buffer_len;          /* length of buffer's content */
+    char*  buffer;
+    size_t buffer_len;
+    size_t buffer_capacity;
+    int    we_own_buffer;
+
+    engine_map_t* engines;
+    size_t        engines_len;
+    size_t        engines_capacity;
     };
 
+int xds_find_engine(const engine_map_t* engines, size_t last, const char* name, size_t* pos);
+
 #endif /* !defined(__INTERNAL_H__) */

CVSTrac 2.0.1