--- xds.h 2001/06/28 15:25:23 1.4
+++ xds.h 2001/06/28 16:09:16 1.5
@@ -1,6 +1,6 @@
/*
$Source: /v/ossp/cvs/ossp-pkg/xds/Attic/xds.h,v $
- $Revision: 1.4 $
+ $Revision: 1.5 $
Copyright (c) 2001 by Cable & Wireless Deutschland.
@@ -21,31 +21,33 @@
#include <stdlib.h>
#include <stdarg.h>
-struct xds_ctx;
-typedef struct xds_ctx xds_ctx_t;
+struct xds_st;
+typedef struct xds_st xds_t;
-typedef int (*xds_fmt_cb_t)(xds_ctx_t* context,
+typedef int (*xds_fmt_cb_t)(xds_t* context,
void* fmt_context,
char* buf, size_t buf_size,
va_list args);
-xds_ctx_t* xds_init(void);
-void xds_destroy(xds_ctx_t* context);
+xds_t* xds_init(void);
+void xds_destroy(xds_t* context);
-int xds_register(xds_ctx_t* context,
+int xds_register(xds_t* context,
const char* name, xds_fmt_cb_t callback,
void* formatter_context);
-int xds_register_xdr(xds_ctx_t* context);
-int xds_register_xml(xds_ctx_t* context);
-int xds_register_asn1(xds_ctx_t* context);
-int xds_unregister(xds_ctx_t* context, const char* name);
-
-char* xds_get_buffer(xds_ctx_t* context);
-int xds_set_buffer(xds_ctx_t* context, char* buf, size_t buf_size);
-
-int xds_encode(xds_ctx_t* context, const char* fmt, ...);
-int xds_decode(xds_ctx_t* context, const char* buf, const char* fmt, ...);
-int xds_vdecode(xds_ctx_t* context, const char* buf, const char* fmt, va_list args);
-int xds_vencode(xds_ctx_t* context, const char* fmt, va_list args);
+int xds_register_xdr(xds_t* context);
+int xds_register_xml(xds_t* context);
+int xds_register_asn1(xds_t* context);
+int xds_unregister(xds_t* context, const char* name);
+
+int xds_set_encode_buffer(xds_t* context, char* buf, size_t buf_size);
+int xds_set_decode_buffer(xds_t* context, const char* buf);
+int xds_get_encode_buffer(xds_t* context, char** buf, size_t* buf_size);
+
+int xds_encode(xds_t* context, const char* fmt, ...);
+int xds_decode(xds_t* context, const char* buf, const char* fmt, ...);
+
+int xds_vencode(xds_t* context, const char* fmt, va_list args);
+int xds_vdecode(xds_t* context, const char* fmt, va_list args);
#endif /* !defined(__LIBXDS_H__) */
|