From 1fd1c6efa08f6d9fdeda859bcbb4b5ef5f770575 Mon Sep 17 00:00:00 2001 From: tilghman Date: Fri, 14 Sep 2007 17:29:23 +0000 Subject: Add a direct execute method to res_odbc (closes issue #10722) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@82393 f38db490-d61c-443f-a65b-d21fe96a405b --- include/asterisk/res_odbc.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/asterisk/res_odbc.h') diff --git a/include/asterisk/res_odbc.h b/include/asterisk/res_odbc.h index 1018eef2d..821b64f28 100644 --- a/include/asterisk/res_odbc.h +++ b/include/asterisk/res_odbc.h @@ -93,6 +93,16 @@ void ast_odbc_release_obj(struct odbc_obj *obj); */ int ast_odbc_sanity_check(struct odbc_obj *obj); +/*! \brief Executes an non prepared statement and returns the resulting + * statement handle. + * \param obj The ODBC object + * \param exec_cb A function callback, which, when called, should return a statement handle with result columns bound. + * \param data A parameter to be passed to the exec_cb parameter function, indicating which statement handle is to be prepared. + * \retval a statement handle + * \retval NULL on error + */ +SQLHSTMT ast_odbc_direct_execute(struct odbc_obj *obj, SQLHSTMT (*exec_cb)(struct odbc_obj *obj, void *data), void *data); + /*! * \brief Prepares, executes, and returns the resulting statement handle. * \param obj The ODBC object -- cgit v1.2.3