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.
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)
{
{ 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) },