mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-24 20:24:16 +00:00
FS-4883 --resolve I can add this but if it leads to issues in the loaded code we may not have resoures to investigate
This commit is contained in:
1 parent
a9267b1faf
commit
081e261956
10 files changed
+135
No files matched your search
@@ -178,6 +178,23 @@ SWITCH_DECLARE(int) switch_core_db_changes(switch_core_db_t *db)
|
||||
return sqlite3_changes(db);
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(int) switch_core_db_load_extension(switch_core_db_t *db, const char *extension)
|
||||
{
|
||||
int ret = 0;
|
||||
char *err = NULL;
|
||||
|
||||
sqlite3_enable_load_extension(db, 1);
|
||||
ret = sqlite3_load_extension(db, extension, 0, &err);
|
||||
sqlite3_enable_load_extension(db, 0);
|
||||
|
||||
if (err) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "LOAD EXTENSION ERR [%s]\n", err);
|
||||
switch_core_db_free(err);
|
||||
err = NULL;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_core_db_t *) switch_core_db_open_file(const char *filename)
|
||||
{
|
||||
switch_core_db_t *db;
|
||||
|
||||
Reference in new issue
Block a user