diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-05-21 01:02:31 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-05-21 01:02:31 -0700 |
commit | 36b19e423a2d66c0c9d722d4ee2fc65c03163b43 (patch) | |
tree | a8e75b8c9b59b56397591f6cebde5d456d8fa30a /plugins/bluetooth.c | |
parent | 91a77ed7265af5b9bf10784292945abb8db940ce (diff) | |
download | connman-36b19e423a2d66c0c9d722d4ee2fc65c03163b43.tar.gz connman-36b19e423a2d66c0c9d722d4ee2fc65c03163b43.tar.bz2 connman-36b19e423a2d66c0c9d722d4ee2fc65c03163b43.zip |
Export and use more generic INET helpers
Diffstat (limited to 'plugins/bluetooth.c')
-rw-r--r-- | plugins/bluetooth.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c index 009c6c7d..8279f619 100644 --- a/plugins/bluetooth.c +++ b/plugins/bluetooth.c @@ -31,11 +31,10 @@ #define CONNMAN_API_SUBJECT_TO_CHANGE #include <connman/plugin.h> #include <connman/device.h> +#include <connman/inet.h> #include <connman/dbus.h> #include <connman/log.h> -#include "inet.h" - #define BLUEZ_SERVICE "org.bluez" #define BLUEZ_MANAGER_INTERFACE BLUEZ_SERVICE ".Manager" #define BLUEZ_ADAPTER_INTERFACE BLUEZ_SERVICE ".Adapter" @@ -213,7 +212,7 @@ static void connect_reply(DBusPendingCall *call, void *user_data) data->interface = g_strdup(interface); - index = inet_name2index(interface); + index = connman_inet_ifindex(interface); connman_network_set_index(network, index); connman_network_set_connected(network, TRUE); |