aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-20 04:57:20 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-20 04:57:20 +0000
commit99788749f1a3ecbb960ee7d15be06650344d1382 (patch)
tree5d9cbe4009d3ba759a3e9a306a8b05f2b3320f4e /funcs
parent7b3a5c9a1aa3e56b5c8a210246e401d488eb01f8 (diff)
move ODBC API into ast_ namespace
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43311 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_odbc.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c
index 6051f8cea..3f5c3f0a2 100644
--- a/funcs/func_odbc.c
+++ b/funcs/func_odbc.c
@@ -119,7 +119,7 @@ static int acf_odbc_write(struct ast_channel *chan, char *cmd, char *s, const ch
return -1;
}
- obj = odbc_request_obj(query->dsn, 0);
+ obj = ast_odbc_request_obj(query->dsn, 0);
if (!obj) {
ast_log(LOG_ERROR, "No database handle available with the name of '%s' (check res_odbc.conf)\n", query->dsn);
@@ -169,7 +169,7 @@ static int acf_odbc_write(struct ast_channel *chan, char *cmd, char *s, const ch
AST_LIST_UNLOCK(&queries);
- stmt = odbc_prepare_and_execute(obj, generic_prepare, buf);
+ stmt = ast_odbc_prepare_and_execute(obj, generic_prepare, buf);
if (stmt) {
/* Rows affected */
@@ -186,7 +186,7 @@ static int acf_odbc_write(struct ast_channel *chan, char *cmd, char *s, const ch
if (stmt)
SQLFreeHandle(SQL_HANDLE_STMT, stmt);
if (obj)
- odbc_release_obj(obj);
+ ast_odbc_release_obj(obj);
return 0;
}
@@ -217,7 +217,7 @@ static int acf_odbc_read(struct ast_channel *chan, char *cmd, char *s, char *buf
return -1;
}
- obj = odbc_request_obj(query->dsn, 0);
+ obj = ast_odbc_request_obj(query->dsn, 0);
if (!obj) {
ast_log(LOG_ERROR, "No such DSN registered (or out of connections): %s (check res_odbc.conf)\n", query->dsn);
@@ -244,10 +244,10 @@ static int acf_odbc_read(struct ast_channel *chan, char *cmd, char *s, char *buf
AST_LIST_UNLOCK(&queries);
- stmt = odbc_prepare_and_execute(obj, generic_prepare, sql);
+ stmt = ast_odbc_prepare_and_execute(obj, generic_prepare, sql);
if (!stmt) {
- odbc_release_obj(obj);
+ ast_odbc_release_obj(obj);
return -1;
}
@@ -255,7 +255,7 @@ static int acf_odbc_read(struct ast_channel *chan, char *cmd, char *s, char *buf
if ((res != SQL_SUCCESS) && (res != SQL_SUCCESS_WITH_INFO)) {
ast_log(LOG_WARNING, "SQL Column Count error!\n[%s]\n\n", sql);
SQLFreeHandle (SQL_HANDLE_STMT, stmt);
- odbc_release_obj(obj);
+ ast_odbc_release_obj(obj);
return -1;
}
@@ -273,7 +273,7 @@ static int acf_odbc_read(struct ast_channel *chan, char *cmd, char *s, char *buf
ast_log(LOG_WARNING, "Error %d in FETCH [%s]\n", res, sql);
}
SQLFreeHandle(SQL_HANDLE_STMT, stmt);
- odbc_release_obj(obj);
+ ast_odbc_release_obj(obj);
return res1;
}
@@ -291,7 +291,7 @@ static int acf_odbc_read(struct ast_channel *chan, char *cmd, char *s, char *buf
if ((res != SQL_SUCCESS) && (res != SQL_SUCCESS_WITH_INFO)) {
ast_log(LOG_WARNING, "SQL Get Data error!\n[%s]\n\n", sql);
SQLFreeHandle(SQL_HANDLE_STMT, stmt);
- odbc_release_obj(obj);
+ ast_odbc_release_obj(obj);
return -1;
}
@@ -316,7 +316,7 @@ static int acf_odbc_read(struct ast_channel *chan, char *cmd, char *s, char *buf
buf[buflen - 1] = '\0';
SQLFreeHandle(SQL_HANDLE_STMT, stmt);
- odbc_release_obj(obj);
+ ast_odbc_release_obj(obj);
return 0;
}