diff options
Diffstat (limited to 'serial/main.c')
| -rw-r--r-- | serial/main.c | 25 | 
1 files changed, 25 insertions, 0 deletions
| diff --git a/serial/main.c b/serial/main.c index b4533a01..24de70a5 100644 --- a/serial/main.c +++ b/serial/main.c @@ -35,11 +35,32 @@  #include <dbus/dbus.h>  #include "plugin.h" +#include "device.h" +#include "logging.h"  #include "dbus-service.h"  #include "manager.h"  static DBusConnection *conn; +static int serial_probe(const char *path) +{ +	debug("path %s", path); + +	return 0; +} + +static void serial_remove(const char *path) +{ +	debug("path %s", path); +} + +static struct btd_device_driver serial_driver = { +	.name	= "serial", +	.uuids	= BTD_UUIDS("spp", "dun"), +	.probe	= serial_probe, +	.remove	= serial_remove, +}; +  static int serial_init(void)  {  	conn = dbus_bus_get(DBUS_BUS_SYSTEM, NULL); @@ -53,11 +74,15 @@ static int serial_init(void)  	register_service("serial", NULL); +	btd_register_device_driver(&serial_driver); +  	return 0;  }  static void serial_exit(void)  { +	btd_unregister_device_driver(&serial_driver); +  	unregister_service("serial");  	serial_manager_exit(); | 
