mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
another crank on the can opener for the big can o worms
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15584 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -210,6 +210,7 @@ struct switch_runtime {
|
||||
char *odbc_dsn;
|
||||
char *odbc_user;
|
||||
char *odbc_pass;
|
||||
uint32_t debug_level;
|
||||
};
|
||||
|
||||
extern struct switch_runtime runtime;
|
||||
|
||||
@@ -1937,17 +1937,24 @@ typedef struct {
|
||||
|
||||
SWITCH_DECLARE(void) switch_cache_db_release_db_handle(switch_cache_db_handle_t **dbh);
|
||||
SWITCH_DECLARE(void) switch_cache_db_destroy_db_handle(switch_cache_db_handle_t **dbh);
|
||||
SWITCH_DECLARE(switch_status_t) switch_cache_db_get_db_handle(switch_cache_db_handle_t **dbh,
|
||||
const char *db_name, const char *odbc_user, const char *odbc_pass);
|
||||
SWITCH_DECLARE(switch_status_t) _switch_cache_db_get_db_handle(switch_cache_db_handle_t **dbh,
|
||||
const char *db_name,
|
||||
const char *odbc_user,
|
||||
const char *odbc_pass, const char *file, const char *func, int line);
|
||||
#define switch_cache_db_get_db_handle(_a, _b, _c, _d) _switch_cache_db_get_db_handle(_a, _b, _c, _d, __FILE__, __SWITCH_FUNC__, __LINE__)
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_cache_db_execute_sql(switch_cache_db_handle_t *dbh, const char *sql, char **err);
|
||||
SWITCH_DECLARE(switch_status_t) switch_cache_db_execute_sql_callback(switch_cache_db_handle_t *dbh, const char *sql,
|
||||
switch_core_db_callback_func_t callback, void *pdata, char **err);
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_db_handle(switch_cache_db_handle_t **dbh);
|
||||
SWITCH_DECLARE(switch_status_t) _switch_core_db_handle(switch_cache_db_handle_t **dbh, const char *file, const char *func, int line);
|
||||
#define switch_core_db_handle(_a) _switch_core_db_handle(_a, __FILE__, __SWITCH_FUNC__, __LINE__)
|
||||
|
||||
SWITCH_DECLARE(void) switch_cache_db_test_reactive(switch_cache_db_handle_t *db, const char *test_sql, const char *drop_sql, const char *reactive_sql);
|
||||
SWITCH_DECLARE(switch_status_t) switch_cache_db_persistant_execute(switch_cache_db_handle_t *dbh, const char *sql, uint32_t retries);
|
||||
SWITCH_DECLARE(switch_status_t) switch_cache_db_persistant_execute_trans(switch_cache_db_handle_t *dbh, const char *sql, uint32_t retries);
|
||||
SWITCH_DECLARE(void) switch_cache_db_detach(void);
|
||||
SWITCH_DECLARE(uint32_t) switch_core_debug_level(void);
|
||||
|
||||
SWITCH_END_EXTERN_C
|
||||
#endif
|
||||
|
||||
@@ -764,6 +764,16 @@ typedef enum {
|
||||
</pre>
|
||||
*/
|
||||
typedef enum {
|
||||
SWITCH_LOG_DEBUG10 = 110,
|
||||
SWITCH_LOG_DEBUG9 = 109,
|
||||
SWITCH_LOG_DEBUG8 = 108,
|
||||
SWITCH_LOG_DEBUG7 = 107,
|
||||
SWITCH_LOG_DEBUG6 = 106,
|
||||
SWITCH_LOG_DEBUG5 = 105,
|
||||
SWITCH_LOG_DEBUG4 = 104,
|
||||
SWITCH_LOG_DEBUG3 = 103,
|
||||
SWITCH_LOG_DEBUG2 = 102,
|
||||
SWITCH_LOG_DEBUG1 = 101,
|
||||
SWITCH_LOG_DEBUG = 7,
|
||||
SWITCH_LOG_INFO = 6,
|
||||
SWITCH_LOG_NOTICE = 5,
|
||||
@@ -1410,7 +1420,8 @@ typedef enum {
|
||||
SCSC_SHUTDOWN_ELEGANT,
|
||||
SCSC_SHUTDOWN_ASAP,
|
||||
SCSC_CANCEL_SHUTDOWN,
|
||||
SCSC_SEND_SIGHUP
|
||||
SCSC_SEND_SIGHUP,
|
||||
SCSC_DEBUG_LEVEL
|
||||
} switch_session_ctl_t;
|
||||
|
||||
typedef enum {
|
||||
|
||||
Reference in New Issue
Block a user