]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix doxygen comment
authorMathieu Rene <mrene@avgs.ca>
Tue, 3 Mar 2009 17:01:50 +0000 (17:01 +0000)
committerMathieu Rene <mrene@avgs.ca>
Tue, 3 Mar 2009 17:01:50 +0000 (17:01 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12370 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_channel.h
src/mod/applications/mod_limit/mod_limit.c
src/mod/endpoints/mod_sofia/sofia_glue.c
src/switch_core.c
src/switch_core_db.c

index 609b8877c68351797ea5f65c933756614529cbc1..6a37c31ade8077f11c4a87cb7cd26ce009bfe25d 100644 (file)
@@ -413,7 +413,7 @@ SWITCH_DECLARE(void *) switch_channel_get_private(switch_channel_t *channel, con
   \brief Unsets private from a given channel
   \param channel channel to unsets data from
   \param key your private data's unique keyname 
-  \return void pointer to channel's private data
+  \return SWITCH_STATUS_SUCCESS if data was unset
 */
 SWITCH_DECLARE(switch_status_t) switch_channel_unset_private(switch_channel_t *channel, const char *key);
 
index dae22dcbf63065f64c9e9781d8d3230855b32113..f7cb6f85d8b52b09633c20bf094e8435eebb7355 100644 (file)
@@ -289,7 +289,7 @@ static switch_status_t do_config()
 
        sql = switch_mprintf("delete from limit_data where hostname='%q';", globals.hostname);
        limit_execute_sql(sql, globals.mutex);
-       switch_safe_free(sql);
+       switch_core_db_free(sql);
 
        switch_xml_free(xml);
 
index 4bc856c36761f5bb45cd7e864291805a51638028..cc9a00c8ae4baf869003f21017edff654363dfd6 100644 (file)
@@ -3133,7 +3133,7 @@ int sofia_glue_init_sql(sofia_profile_t *profile)
                        switch_odbc_handle_exec(profile->master_odbc, "DROP TABLE sip_registrations", NULL);
                        switch_odbc_handle_exec(profile->master_odbc, reg_sql, NULL);
                }
-               free(test_sql);
+               switch_core_db_free(test_sql);
 
 
                test_sql = switch_mprintf("delete from sip_subscriptions where hostname='%q'", mod_sofia_globals.hostname);
@@ -3143,7 +3143,7 @@ int sofia_glue_init_sql(sofia_profile_t *profile)
                        switch_odbc_handle_exec(profile->master_odbc, sub_sql, NULL);
                }
 
-               free(test_sql);
+               switch_core_db_free(test_sql);
                test_sql = switch_mprintf("delete from sip_dialogs where hostname='%q'", mod_sofia_globals.hostname);
 
                if (switch_odbc_handle_exec(profile->master_odbc, test_sql, NULL) != SWITCH_ODBC_SUCCESS) {
@@ -3158,21 +3158,21 @@ int sofia_glue_init_sql(sofia_profile_t *profile)
                        switch_odbc_handle_exec(profile->master_odbc, pres_sql, NULL);
                }
 
-               free(test_sql);
+               switch_core_db_free(test_sql);
                test_sql = switch_mprintf("delete from sip_authentication where hostname='%q'", mod_sofia_globals.hostname);
 
                if (switch_odbc_handle_exec(profile->master_odbc, test_sql, NULL) != SWITCH_ODBC_SUCCESS) {
                        switch_odbc_handle_exec(profile->master_odbc, "DROP TABLE sip_authentication", NULL);
                        switch_odbc_handle_exec(profile->master_odbc, auth_sql, NULL);
                }
-               free(test_sql);
+               switch_core_db_free(test_sql);
 
                test_sql = switch_mprintf("delete from sip_shared_appearance_subscriptions where contact_str='' or hostname='%q'", mod_sofia_globals.hostname);
                if (switch_odbc_handle_exec(profile->master_odbc, test_sql, NULL) != SWITCH_ODBC_SUCCESS) {
                        switch_odbc_handle_exec(profile->master_odbc, "DROP TABLE sip_shared_appearance_subscriptions", NULL);
                        switch_odbc_handle_exec(profile->master_odbc, shared_appearance_sql, NULL);
                }
-               free(test_sql);
+               switch_core_db_free(test_sql);
 
                for (x = 0; indexes[x]; x++) {
                        switch_odbc_handle_exec(profile->master_odbc, indexes[x], NULL);
@@ -3192,28 +3192,28 @@ int sofia_glue_init_sql(sofia_profile_t *profile)
                                                                  mod_sofia_globals.hostname);
                
                switch_core_db_test_reactive(profile->master_db, test_sql, "DROP TABLE sip_registrations", reg_sql);
-               free(test_sql);
+               switch_core_db_free(test_sql);
 
                test_sql = switch_mprintf("delete from sip_subscriptions where hostname='%q'", mod_sofia_globals.hostname);
                switch_core_db_test_reactive(profile->master_db, test_sql, "DROP TABLE sip_subscriptions", sub_sql);
-               free(test_sql);
+               switch_core_db_free(test_sql);
                
                test_sql = switch_mprintf("delete from sip_dialogs where hostname='%q'", mod_sofia_globals.hostname);
                switch_core_db_test_reactive(profile->master_db, test_sql, "DROP TABLE sip_dialogs", dialog_sql);
-               free(test_sql);
+               switch_core_db_free(test_sql);
 
                test_sql = switch_mprintf("delete from sip_presence where hostname='%q'", mod_sofia_globals.hostname);
                switch_core_db_test_reactive(profile->master_db, test_sql, "DROP TABLE sip_presence", pres_sql);
-               free(test_sql);
+               switch_core_db_free(test_sql);
 
                test_sql = switch_mprintf("delete from sip_authentication where hostname='%q'", mod_sofia_globals.hostname);
                switch_core_db_test_reactive(profile->master_db, test_sql, "DROP TABLE sip_authentication", auth_sql);
-               free(test_sql);
+               switch_core_db_free(test_sql);
 
                
                test_sql = switch_mprintf("delete from sip_shared_appearance_subscriptions where contact_str = '' or hostname='%q'", mod_sofia_globals.hostname);
                switch_core_db_test_reactive(profile->master_db, test_sql, "DROP TABLE sip_shared_appearance_subscriptions", shared_appearance_sql);
-               free(test_sql);
+               switch_core_db_free(test_sql);
                
                switch_core_db_exec(profile->master_db, "create index if not exists ssa_hostname on sip_shared_appearance_subscriptions (hostname)", 
                                                        NULL, NULL, NULL);
index 30b1353bc226110dbb56985335c9266301248672..268190412c0a44967e64e61804a6fb5a81779e40 100644 (file)
@@ -758,7 +758,7 @@ static void load_mime_types(void)
 
  end:
 
-       switch_safe_free(mime_path);
+               switch_core_db_free(mime_path);
 
 }
 
@@ -1034,7 +1034,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc
 
        dir_path = switch_mprintf("%s%ssounds", SWITCH_GLOBAL_dirs.base_dir, SWITCH_PATH_SEPARATOR);
        switch_dir_make_recursive(dir_path, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
-       switch_safe_free(dir_path);
+       switch_core_db_free(dir_path);
        switch_dir_make_recursive(SWITCH_GLOBAL_dirs.base_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
        switch_dir_make_recursive(SWITCH_GLOBAL_dirs.mod_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
        switch_dir_make_recursive(SWITCH_GLOBAL_dirs.conf_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
index 94d4416b70af7a7e13a5379db66cdd26bd22e21d..a1b54dc46b3bb9c31f966433403c6b64fbe548c3 100644 (file)
@@ -85,7 +85,7 @@ SWITCH_DECLARE(int) switch_core_db_exec(switch_core_db_t *db, const char *sql, s
                ret = sqlite3_exec(db, sql, callback, data, &err);
                if (ret == SQLITE_BUSY || ret == SQLITE_LOCKED) {
                        if (sane > 1) {
-                               switch_safe_free(err);
+                               switch_core_db_free(err);
                                switch_cond_next();
                                continue;
                        }