manager: Remove the SetProperty method
authorSamuel Ortiz <sameo@linux.intel.com>
Wed, 3 Jul 2013 15:01:26 +0000 (17:01 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 3 Jul 2013 15:03:05 +0000 (17:03 +0200)
The neard Manager properties are read only and they only contain the
Adapters.

doc/manager-api.txt
src/manager.c

index e2a70cc..0182bd3 100644 (file)
@@ -7,20 +7,11 @@ Object path   /
 
 Methods                dict GetProperties()
 
-                       Returns all properties for the device. See the
+                       Returns all properties for the manager. See the
                        properties section for available properties.
 
                        Possible Errors: org.neard.Error.DoesNotExist
 
-               void SetProperty(string name, variant value)
-
-                       Changes the value of the specified property. Only
-                       properties that are listed a read-write are changeable.
-                       On success this will emit a PropertyChanged signal.
-
-                       Possible Errors: org.neard.Error.DoesNotExist
-                                        org.neard.Error.InvalidArguments
-
                void RegisterHandoverAgent(object path, string carrier)
 
                        Register new handover agent.
index 536cf94..0950661 100644 (file)
@@ -59,14 +59,6 @@ static DBusMessage *get_properties(DBusConnection *conn,
        return reply;
 }
 
-static DBusMessage *set_property(DBusConnection *conn,
-                                       DBusMessage *msg, void *data)
-{
-       DBG("conn %p", conn);
-
-       return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
-}
-
 int __near_manager_adapter_add(uint32_t idx, const char *name,
                                uint32_t protocols, near_bool_t powered)
 {
@@ -265,9 +257,6 @@ static const GDBusMethodTable manager_methods[] = {
        { GDBUS_METHOD("GetProperties",
                                NULL, GDBUS_ARGS({"properties", "a{sv}"}),
                                get_properties) },
-       { GDBUS_METHOD("SetProperty",
-                               GDBUS_ARGS({"name", "s"}, {"value", "v"}),
-                               NULL, set_property) },
        { GDBUS_METHOD("RegisterHandoverAgent",
                        GDBUS_ARGS({ "path", "o" }, { "type", "s"}),
                        NULL, register_handover_agent) },