Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

astdb.h

Go to the documentation of this file.
00001 /* 00002 * Asterisk -- A telephony toolkit for Linux. 00003 * 00004 * Persistant data storage (akin to *doze registry) 00005 * 00006 * Copyright (C) 1999, Mark Spencer 00007 * 00008 * Mark Spencer <markster@linux-support.net> 00009 * 00010 * This program is free software, distributed under the terms of 00011 * the GNU General Public License 00012 */ 00013 00014 #ifndef _ASTERISK_ASTDB_H 00015 #define _ASTERISK_ASTDB_H 00016 00017 #if defined(__cplusplus) || defined(c_plusplus) 00018 extern "C" { 00019 #endif 00020 00021 struct ast_db_entry { 00022 struct ast_db_entry *next; 00023 char *key; 00024 char data[0]; 00025 }; 00026 00027 int ast_db_get(const char *family, const char *key, char *out, int outlen); 00028 00029 int ast_db_put(const char *family, const char *key, char *value); 00030 00031 int ast_db_del(const char *family, const char *key); 00032 00033 int ast_db_deltree(const char *family, const char *keytree); 00034 00035 struct ast_db_entry *ast_db_gettree(const char *family, const char *keytree); 00036 00037 void ast_db_freetree(struct ast_db_entry *entry); 00038 00039 #if defined(__cplusplus) || defined(c_plusplus) 00040 } 00041 #endif 00042 00043 #endif

Generated on Sat Jun 12 16:40:57 2004 for Asterisk by doxygen 1.3.7