Rename internal ofono history funcs to __ofono
authorDenis Kenzior <denkenz@gmail.com>
Wed, 29 Jul 2009 17:59:39 +0000 (12:59 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Wed, 29 Jul 2009 21:44:16 +0000 (16:44 -0500)
src/history.c
src/manager.c
src/ofono.h
src/voicecall.c

index 1720cf9..4f1284b 100644 (file)
@@ -59,7 +59,7 @@ static struct ofono_history_context *history_context_create(
        return context;
 }
 
-void ofono_history_probe_drivers(struct ofono_modem *modem)
+void __ofono_history_probe_drivers(struct ofono_modem *modem)
 {
        GSList *l;
        struct ofono_history_context *context;
@@ -78,7 +78,7 @@ void ofono_history_probe_drivers(struct ofono_modem *modem)
        }
 }
 
-void ofono_history_remove_drivers(struct ofono_modem *modem)
+void __ofono_history_remove_drivers(struct ofono_modem *modem)
 {
        GSList *l;
        struct ofono_history_context *context;
@@ -96,7 +96,7 @@ void ofono_history_remove_drivers(struct ofono_modem *modem)
        modem->history_contexts = NULL;
 }
 
-void ofono_history_call_ended(struct ofono_modem *modem,
+void __ofono_history_call_ended(struct ofono_modem *modem,
                                const struct ofono_call *call,
                                time_t start, time_t end)
 {
@@ -111,7 +111,7 @@ void ofono_history_call_ended(struct ofono_modem *modem,
        }
 }
 
-void ofono_history_call_missed(struct ofono_modem *modem,
+void __ofono_history_call_missed(struct ofono_modem *modem,
                                const struct ofono_call *call, time_t when)
 {
        struct ofono_history_context *context;
index 0c8f49b..b8e250c 100644 (file)
@@ -77,7 +77,7 @@ struct ofono_modem *ofono_modem_register(struct ofono_modem_attribute_ops *ops)
 
        ++g_next_modem_id;
 
-       ofono_history_probe_drivers(modem);
+       __ofono_history_probe_drivers(modem);
        g_modem_list = g_slist_prepend(g_modem_list, modem);
 
        if (modem_list(&modems) == 0) {
@@ -100,7 +100,7 @@ int ofono_modem_unregister(struct ofono_modem *m)
        if (modem == NULL)
                return -1;
 
-       ofono_history_remove_drivers(modem);
+       __ofono_history_remove_drivers(modem);
        modem_remove(modem);
 
        g_modem_list = g_slist_remove(g_modem_list, modem);
index 9197337..434f7ba 100644 (file)
@@ -59,12 +59,12 @@ void __ofono_plugin_cleanup(void);
 
 #include <ofono/history.h>
 
-void ofono_history_probe_drivers(struct ofono_modem *modem);
-void ofono_history_remove_drivers(struct ofono_modem *modem);
+void __ofono_history_probe_drivers(struct ofono_modem *modem);
+void __ofono_history_remove_drivers(struct ofono_modem *modem);
 
-void ofono_history_call_ended(struct ofono_modem *modem,
+void __ofono_history_call_ended(struct ofono_modem *modem,
                                const struct ofono_call *call,
                                time_t start, time_t end);
 
-void ofono_history_call_missed(struct ofono_modem *modem,
+void __ofono_history_call_missed(struct ofono_modem *modem,
                                const struct ofono_call *call, time_t when);
index f5a969c..07b254f 100644 (file)
@@ -1248,9 +1248,9 @@ void ofono_voicecall_disconnected(struct ofono_modem *modem, int id,
        voicecall_set_call_status(modem, call, CALL_STATUS_DISCONNECTED);
 
        if (prev_status == CALL_STATUS_INCOMING)
-               ofono_history_call_missed(modem, call->call, ts);
+               __ofono_history_call_missed(modem, call->call, ts);
        else
-               ofono_history_call_ended(modem, call->call,
+               __ofono_history_call_ended(modem, call->call,
                                                call->detect_time, ts);
 
        voicecall_dbus_unregister(modem, call);