diff options
-rw-r--r-- | doc/network-api.txt | 6 | ||||
-rw-r--r-- | network/connection.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/doc/network-api.txt b/doc/network-api.txt index 5e3cb3474..eca60d4f3 100644 --- a/doc/network-api.txt +++ b/doc/network-api.txt @@ -14,8 +14,8 @@ Object path [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX Methods string Connect(string uuid) Connect to the network device and return the network - device name. Examples of the device name are bnep0, - bnep1 etc. + interface name. Examples of the interface name are + bnep0, bnep1 etc. uuid can be either one of "gn", "panu" or "nap" (case insensitive) or a traditional string representation of @@ -51,7 +51,7 @@ Properties boolean Connected [readonly] Indicates if the device is connected. - string Device [readonly] + string Interface [readonly] Indicates the network interface name when available. diff --git a/network/connection.c b/network/connection.c index 65871fa3d..3e52d2af9 100644 --- a/network/connection.c +++ b/network/connection.c @@ -157,7 +157,7 @@ static gboolean bnep_watchdog_cb(GIOChannel *chan, GIOCondition cond, NETWORK_PEER_INTERFACE, "Connected", DBUS_TYPE_BOOLEAN, &connected); emit_property_changed(connection, nc->peer->path, - NETWORK_PEER_INTERFACE, "Device", + NETWORK_PEER_INTERFACE, "Interface", DBUS_TYPE_STRING, &property); emit_property_changed(connection, nc->peer->path, NETWORK_PEER_INTERFACE, "UUID", @@ -302,7 +302,7 @@ static gboolean bnep_setup_cb(GIOChannel *chan, GIOCondition cond, NETWORK_PEER_INTERFACE, "Connected", DBUS_TYPE_BOOLEAN, &connected); emit_property_changed(connection, nc->peer->path, - NETWORK_PEER_INTERFACE, "Device", + NETWORK_PEER_INTERFACE, "Interface", DBUS_TYPE_STRING, &pdev); emit_property_changed(connection, nc->peer->path, NETWORK_PEER_INTERFACE, "UUID", @@ -502,9 +502,9 @@ static DBusMessage *connection_get_properties(DBusConnection *conn, connected = nc ? TRUE : FALSE; dict_append_entry(&dict, "Connected", DBUS_TYPE_BOOLEAN, &connected); - /* Device */ + /* Interface */ property = nc ? nc->dev : ""; - dict_append_entry(&dict, "Device", DBUS_TYPE_STRING, &property); + dict_append_entry(&dict, "Interface", DBUS_TYPE_STRING, &property); /* UUID */ property = nc ? bnep_uuid(nc->id) : ""; |