diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-08-10 18:34:52 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-08-10 18:34:52 +0000 |
commit | 152ee1375cd30d6efa61b52b46682e9d187155ed (patch) | |
tree | 30a1e86d83b1915f28404ae5b19f76f0a8a852e5 /serial | |
parent | d195a1ef061b12e04ae23cf644ea22d29178f590 (diff) |
serial: Added CreateProxy, ListProxies and RemoveProxy skeleton
Diffstat (limited to 'serial')
-rw-r--r-- | serial/manager.c | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/serial/manager.c b/serial/manager.c index e847f550..15d23a30 100644 --- a/serial/manager.c +++ b/serial/manager.c @@ -891,6 +891,24 @@ static DBusHandlerResult remove_port(DBusConnection *conn, return DBUS_HANDLER_RESULT_HANDLED; } +static DBusHandlerResult create_proxy(DBusConnection *conn, + DBusMessage *msg, void *data) +{ + return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; +} + +static DBusHandlerResult list_proxies(DBusConnection *conn, + DBusMessage *msg, void *data) +{ + return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; +} + +static DBusHandlerResult remove_proxy(DBusConnection *conn, + DBusMessage *msg, void *data) +{ + return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; +} + static DBusHandlerResult connect_service(DBusConnection *conn, DBusMessage *msg, void *data) { @@ -1088,6 +1106,9 @@ static DBusMethodVTable manager_methods[] = { { "CreatePort", create_port, "ss", "s" }, { "ListPorts", list_ports, "", "as" }, { "RemovePort", remove_port, "s", "" }, + { "CreateProxy", create_proxy, "ss", "s" }, + { "ListProxies", list_proxies, "", "as" }, + { "RemoveProxy", remove_proxy, "s", "" }, { "ConnectService", connect_service, "ss", "s" }, { "DisconnectService", disconnect_service, "s", "" }, { "CancelConnectService", cancel_connect_service, "ss", "" }, @@ -1095,10 +1116,12 @@ static DBusMethodVTable manager_methods[] = { }; static DBusSignalVTable manager_signals[] = { - { "ServiceConnected", "s" }, - { "ServiceDisconnected", "s" }, { "PortCreated", "s" }, { "PortRemoved", "s" }, + { "ProxyCreated", "s" }, + { "ProxyRemoved", "s" }, + { "ServiceConnected", "s" }, + { "ServiceDisconnected", "s" }, { NULL, NULL } }; |