Add device function for scheduling a scan
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 26 Nov 2009 08:11:28 +0000 (09:11 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 26 Nov 2009 08:11:28 +0000 (09:11 +0100)
include/device.h
src/device.c

index 5267e25..3a5b4be 100644 (file)
@@ -111,6 +111,8 @@ int connman_device_remove_network(struct connman_device *device,
                                                        const char *identifier);
 void connman_device_remove_all_networks(struct connman_device *device);
 
+void connman_device_schedule_scan(struct connman_device *device);
+
 int connman_device_register(struct connman_device *device);
 void connman_device_unregister(struct connman_device *device);
 
index 41eb07c..fbc7295 100644 (file)
@@ -115,6 +115,11 @@ static void force_scan_trigger(struct connman_device *device)
                                        device_scan_trigger, device);
 }
 
+void connman_device_schedule_scan(struct connman_device *device)
+{
+       reset_scan_trigger(device);
+}
+
 static const char *type2description(enum connman_device_type type)
 {
        switch (type) {