bluez5: Rename BlueZ Profile registration functions
authorClaudio Takahasi <claudio.takahasi@openbossa.org>
Fri, 1 Feb 2013 23:33:06 +0000 (20:33 -0300)
committerDenis Kenzior <denkenz@gmail.com>
Thu, 14 Feb 2013 14:47:10 +0000 (08:47 -0600)
This patch renames external profile registration functions replacing the
prefix from 'bluetooth_' to 'bt_' in order to follow the name convention
adopted for bluez5 functions.

plugins/bluez5.c
plugins/bluez5.h
plugins/hfp_ag_bluez5.c
plugins/hfp_hf_bluez5.c

index d5c566e..c505e71 100644 (file)
@@ -101,7 +101,7 @@ done:
        dbus_message_unref(reply);
 }
 
-int bluetooth_register_profile(DBusConnection *conn, const char *uuid,
+int bt_register_profile(DBusConnection *conn, const char *uuid,
                                        const char *name, const char *object)
 {
        DBusMessageIter iter, dict;
@@ -136,7 +136,7 @@ int bluetooth_register_profile(DBusConnection *conn, const char *uuid,
        return 0;
 }
 
-void bluetooth_unregister_profile(DBusConnection *conn, const char *object)
+void bt_unregister_profile(DBusConnection *conn, const char *object)
 {
        DBusMessageIter iter;
        DBusPendingCall *c;
index cdbfe72..16245eb 100644 (file)
@@ -69,7 +69,7 @@ int bt_ba2str(const bdaddr_t *ba, char *str);
 
 int bt_bacmp(const bdaddr_t *ba1, const bdaddr_t *ba2);
 
-int bluetooth_register_profile(DBusConnection *conn, const char *uuid,
+int bt_register_profile(DBusConnection *conn, const char *uuid,
                                        const char *name, const char *object);
 
-void bluetooth_unregister_profile(DBusConnection *conn, const char *object);
+void bt_unregister_profile(DBusConnection *conn, const char *object);
index 80dd601..03a46fb 100644 (file)
@@ -163,7 +163,7 @@ static void sim_state_watch(enum ofono_sim_state new_state, void *data)
                if (modems != NULL)
                        return;
 
-               bluetooth_unregister_profile(conn, HFP_AG_EXT_PROFILE_PATH);
+               bt_unregister_profile(conn, HFP_AG_EXT_PROFILE_PATH);
 
                return;
        }
@@ -176,7 +176,7 @@ static void sim_state_watch(enum ofono_sim_state new_state, void *data)
        if (modems->next != NULL)
                return;
 
-       bluetooth_register_profile(conn, HFP_AG_UUID, "hfp_ag",
+       bt_register_profile(conn, HFP_AG_UUID, "hfp_ag",
                                                HFP_AG_EXT_PROFILE_PATH);
 }
 
index 2f4a89e..cd3f9a6 100644 (file)
@@ -429,7 +429,7 @@ static void connect_handler(DBusConnection *conn, void *user_data)
 {
        DBG("Registering External Profile handler ...");
 
-       bluetooth_register_profile(conn, HFP_HS_UUID, "hfp_hf",
+       bt_register_profile(conn, HFP_HS_UUID, "hfp_hf",
                                                HFP_EXT_PROFILE_PATH);
 }
 
@@ -606,7 +606,7 @@ static void hfp_exit(void)
 {
        DBusConnection *conn = ofono_dbus_get_connection();
 
-       bluetooth_unregister_profile(conn, HFP_EXT_PROFILE_PATH);
+       bt_unregister_profile(conn, HFP_EXT_PROFILE_PATH);
        g_dbus_unregister_interface(conn, HFP_EXT_PROFILE_PATH,
                                                BLUEZ_PROFILE_INTERFACE);
        ofono_modem_driver_unregister(&hfp_driver);