diff options
| author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-05-15 17:07:22 +0000 | 
|---|---|---|
| committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-05-15 17:07:22 +0000 | 
| commit | 2ebe2befb56e62e81ec42f81450118a8721724e0 (patch) | |
| tree | 5c4aeba72214a733705fdbea7828f6441fec974b /serial/manager.c | |
| parent | ceeb274a3bc8f4fda2a08c1a831a1ffbfb2f85a8 (diff) | |
serial: Added CreatePort, ListPorts and RemovePort declaration
Diffstat (limited to 'serial/manager.c')
| -rw-r--r-- | serial/manager.c | 21 | 
1 files changed, 21 insertions, 0 deletions
diff --git a/serial/manager.c b/serial/manager.c index 58263721..b5ced583 100644 --- a/serial/manager.c +++ b/serial/manager.c @@ -663,6 +663,24 @@ static int get_handles(struct pending_connect *pc, const char *uuid,  	return 0;  } +static DBusHandlerResult create_port(DBusConnection *conn, +				DBusMessage *msg, void *data) +{ +	return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; +} + +static DBusHandlerResult list_ports(DBusConnection *conn, +				DBusMessage *msg, void *data) +{ +	return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; +} + +static DBusHandlerResult remove_port(DBusConnection *conn, +				DBusMessage *msg, void *data) +{ +	return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; +} +  static DBusHandlerResult connect_service(DBusConnection *conn,  					DBusMessage *msg, void *data)  { @@ -886,6 +904,9 @@ static void manager_unregister(DBusConnection *conn, void *data)  }  static DBusMethodVTable manager_methods[] = { +	{ "CreatePort",			create_port,		"ss",	"s"	}, +	{ "ListPorts",			list_ports,		"",	"as"	}, +	{ "RemovePort",			remove_port,		"s",	""	},  	{ "ConnectService",		connect_service,	"ss",	"s"	},  	{ "DisconnectService",		disconnect_service,	"s",	""	},  	{ "CancelConnectService",	cancel_connect_service,	"ss",	""	},  | 
