OSSP CVS Repository

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

Check-in Number: 4125
Date: 2001-Jun-28 14:31:22 (local)
2001-Jun-28 12:31:22 (UTC)
User:simons
Branch:
Comment: First attempt of an interface definition for the library.
Tickets:
Inspections:
Files:
ossp-pkg/xds/xds.h      added-> 1.1

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

*** /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__) */

CVSTrac 2.0.1