diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-03 18:14:35 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-03 18:14:35 +0000 |
commit | a7de4be0d5d01425755a1bb33dd81c811b52c579 (patch) | |
tree | a99936572577ee64e1dc351307de1bd656809a91 /1.2-netsec/include/asterisk/res_odbc.h | |
parent | 67da2f8263b4e9bb5522fa59b27e143381d69774 (diff) |
remove improperly created directory
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.2.5@11748 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to '1.2-netsec/include/asterisk/res_odbc.h')
-rw-r--r-- | 1.2-netsec/include/asterisk/res_odbc.h | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/1.2-netsec/include/asterisk/res_odbc.h b/1.2-netsec/include/asterisk/res_odbc.h deleted file mode 100644 index 9e4070beb..000000000 --- a/1.2-netsec/include/asterisk/res_odbc.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Asterisk -- An open source telephony toolkit. - * - * Copyright (C) 1999 - 2005, Digium, Inc. - * Copyright (C) 2004 - 2005, Anthony Minessale II - * - * Mark Spencer <markster@digium.com> - * Anthony Minessale <anthmct@yahoo.com> - * - * See http://www.asterisk.org for more information about - * the Asterisk project. Please do not directly contact - * any of the maintainers of this project for assistance; - * the project provides a web site, mailing lists and IRC - * channels for your use. - * - * This program is free software, distributed under the terms of - * the GNU General Public License Version 2. See the LICENSE file - * at the top of the source tree. - */ - -/*! \file - * \brief ODBC resource manager - */ - -#ifndef _ASTERISK_RES_ODBC_H -#define _ASTERISK_RES_ODBC_H - -#include <sql.h> -#include <sqlext.h> -#include <sqltypes.h> - -typedef struct odbc_obj odbc_obj; - -typedef enum { ODBC_SUCCESS=0,ODBC_FAIL=-1} odbc_status; - -struct odbc_obj { - char *name; - char *dsn; - char *username; - char *password; - SQLHENV env; /* ODBC Environment */ - SQLHDBC con; /* ODBC Connection Handle */ - SQLHSTMT stmt; /* ODBC Statement Handle */ - ast_mutex_t lock; - int up; - -}; - -/* functions */ -odbc_obj *new_odbc_obj(char *name,char *dsn,char *username, char *password); -odbc_status odbc_obj_connect(odbc_obj *obj); -odbc_status odbc_obj_disconnect(odbc_obj *obj); -void destroy_odbc_obj(odbc_obj **obj); -int register_odbc_obj(char *name,odbc_obj *obj); -odbc_obj *fetch_odbc_obj(const char *name, int check); -int odbc_dump_fd(int fd,odbc_obj *obj); -int odbc_sanity_check(odbc_obj *obj); -SQLHSTMT odbc_prepare_and_execute(odbc_obj *obj, SQLHSTMT (*prepare_cb)(odbc_obj *obj, void *data), void *data); -int odbc_smart_execute(odbc_obj *obj, SQLHSTMT stmt); -int odbc_smart_direct_execute(odbc_obj *obj, SQLHSTMT stmt, char *sql); - -#endif /* _ASTERISK_RES_ODBC_H */ |