*** /dev/null Sat Nov 23 01:01:13 2024
--- - Sat Nov 23 01:01:17 2024
***************
*** 0 ****
--- 1,38 ----
+ /*
+ $Source: /v/ossp/cvs/ossp-pkg/xds/Attic/xds.h,v $
+ $Revision: 1.1 $
+
+ Copyright (c) 2001 by Cable & Wireless Deutschland.
+
+ Permission to use, copy, modify, and distribute this software for
+ any purpose with or without fee is hereby granted, provided that
+ the above copyright notice and this permission notice appear in all
+ copies.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ included license for more details.
+ */
+
+ #ifndef __LIBXDS_H__
+ #define __LIBXDS_H__
+
+ #include <stdlib.h>
+
+ typedef struct
+ {
+ }
+ xds_ctx;
+
+ xds_ctx* xds_init(void);
+ void xds_destroy(xds_ctx* context);
+
+ typedef int (*xds_formatter_cb)(char* buf, size_t buf_size, void* val);
+ int xds_register(xds_ctx* context, const char* name, xds_formatter_cb callback);
+
+ int xds_mashal(xds_ctx* context, const char* fmt, ...);
+ int xds_snmashal(xds_ctx* context, char* buf, size_t buf_size, const char* fmt, ...);
+ int xds_amashal(xds_ctx* context, char** buf_p, size_t buf_size, const char* fmt, ...);
+
+ #endif /* !defined(__LIBXDS_H__) */
|