mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 04:50:30 +01:00
2005-03-24 Dan Williams <dcbw@redhat.com>
* test/nmtest.c - Escape some forgotten object paths before we shove them through dbus git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@508 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
c70e604b41
commit
d5c549dc55
2 changed files with 7 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
2005-03-24 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* test/nmtest.c
|
||||
- Escape object paths before we shove them through dbus
|
||||
- Escape some forgotten object paths before we shove them through dbus
|
||||
|
||||
2005-03-24 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
|
|
|
|||
|
|
@ -217,8 +217,10 @@ char * get_object_name (DBusConnection *connection, char *path)
|
|||
{
|
||||
int ret;
|
||||
char *name = NULL;
|
||||
char *escaped_path = nm_dbus_escape_object_path (path);
|
||||
|
||||
ret = nmwa_dbus_call_nm_method (connection, path, "getName", DBUS_TYPE_STRING, (void *)(&name), NULL);
|
||||
ret = nmwa_dbus_call_nm_method (connection, escaped_path, "getName", DBUS_TYPE_STRING, (void *)(&name), NULL);
|
||||
g_free (escaped_path);
|
||||
if (ret == RETURN_SUCCESS)
|
||||
return (name);
|
||||
|
||||
|
|
@ -230,8 +232,10 @@ int get_object_signal_strength (DBusConnection *connection, char *path)
|
|||
{
|
||||
int ret;
|
||||
int strength = -1;
|
||||
char *escaped_path = nm_dbus_escape_object_path (path);
|
||||
|
||||
ret = nmwa_dbus_call_nm_method (connection, path, "getStrength", DBUS_TYPE_INT32, (void *)(&strength), NULL);
|
||||
ret = nmwa_dbus_call_nm_method (connection, escaped_path, "getStrength", DBUS_TYPE_INT32, (void *)(&strength), NULL);
|
||||
g_free (escaped_path);
|
||||
if (ret == RETURN_SUCCESS)
|
||||
return (strength);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue