summaryrefslogtreecommitdiffstats
path: root/include/.svn/text-base/nastd.h.svn-base
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2008-04-14 21:54:00 -0400
committerBrian Cully <github.20.shmit@spamgourmet.com>2008-04-14 21:54:00 -0400
commit79d65188b1c1578a36403c0e5756c81dcc93d816 (patch)
tree2903ed400cd0ebd13350397d402c1d9d5b9f869d /include/.svn/text-base/nastd.h.svn-base
parent6ba98a9f9f48e13738d9736cba9c45b5e94f42f2 (diff)
downloadnastd-79d65188b1c1578a36403c0e5756c81dcc93d816.tar.gz
nastd-79d65188b1c1578a36403c0e5756c81dcc93d816.zip
Remove svn files
Diffstat (limited to 'include/.svn/text-base/nastd.h.svn-base')
-rw-r--r--include/.svn/text-base/nastd.h.svn-base85
1 files changed, 0 insertions, 85 deletions
diff --git a/include/.svn/text-base/nastd.h.svn-base b/include/.svn/text-base/nastd.h.svn-base
deleted file mode 100644
index b1fbaa4..0000000
--- a/include/.svn/text-base/nastd.h.svn-base
+++ /dev/null
@@ -1,85 +0,0 @@
-/* $Id: nastd.h,v 1.7 2001/10/29 11:17:12 shmit Exp $ */
-
-#ifndef NASTD_H
-#define NASTD_H
-
-enum _nast_bool { NASTFALSE = 0, NASTTRUE = 1 };
-typedef enum _nast_bool nast_bool;
-
-enum _errcodes {
- NAST_OK = 0,
- NAST_SERVER_GONE = 1,
- NAST_NOMEM = 2,
- NAST_UNKNOWN_RESPONSE = 3,
- NAST_TIMEDOUT = 4,
- NAST_UNKNOWN_OPT = 5,
- NAST_SERVER_ERR
-};
-typedef enum _errcodes errcodes;
-
-struct _nast_options {
- nast_bool use_qcache;
- nast_bool use_localdb;
- nast_bool fallthrough_async;
- nast_bool always_fallthrough;
- nast_bool fail_once;
- nast_bool no_fallthrough;
-};
-typedef struct _nast_options nast_options;
-
-struct _nast_string_t {
- char *strdata;
- int strlen;
-};
-typedef struct _nast_string_t nast_string_t;
-
-struct _nast_array {
- int nitems;
- nast_string_t **items;
-};
-typedef struct _nast_array nast_array;
-
-struct _nast_response {
- char *buffer;
- char *errmsg;
- errcodes errcode;
- short bufflen;
- unsigned short reqid;
-};
-typedef struct _nast_response nast_response;
-
-struct _nast_sphincter {
- nast_response **responses;
- void *lock;
- int socket;
- int nthreads;
-};
-typedef struct _nast_sphincter nasth;
-
-nasth *nast_sphincter_new(const char *sock_path);
-int nast_sphincter_connect(nasth *sphincter, const char *hostname,
- unsigned short port, const char *username,
- const char *password);
-void nast_sphincter_close(nasth *sphincter);
-
-nast_array *nast_get_result(nasth *sphincter);
-void nast_free_result(nast_array *result);
-
-nast_array *nast_array_new();
-int nast_array_add(nast_array *array, short len, const char *data);
-void nast_array_delete(nast_array *array);
-
-int nast_options_set(nasth *sphincter, nast_options *opts);
-int nast_options_get(nasth *sphincter, nast_options *opts);
-
-int nast_add(nasth *sphincter, const char *query);
-int nast_del(nasth *sphincter, const char *query);
-int nast_get(nasth *sphincter, const char *query);
-int nast_upd(nasth *sphincter, const char *key, nast_array *valarray);
-
-int nast_stats(nasth *sphincter);
-
-errcodes nast_geterr(nasth *sphincter);
-char *nast_errmsg(nasth *sphincter);
-
-#endif