Commit d5c549dc authored by Dan Williams's avatar Dan Williams
Browse files

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
parent c70e604b
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment