device: Device scan function made private
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Wed, 24 Aug 2011 07:00:21 +0000 (10:00 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 24 Aug 2011 13:36:35 +0000 (15:36 +0200)
The __connman_device_scan() is now static as it is only
called from device.c

src/connman.h
src/device.c

index d74e653..945d8e8 100644 (file)
@@ -361,7 +361,6 @@ void __connman_device_set_network(struct connman_device *device,
                                        struct connman_network *network);
 void __connman_device_cleanup_networks(struct connman_device *device);
 
-int __connman_device_scan(struct connman_device *device);
 int __connman_device_enable(struct connman_device *device);
 int __connman_device_enable_persistent(struct connman_device *device);
 int __connman_device_disable(struct connman_device *device);
index 3fb4b1e..12fa49a 100644 (file)
@@ -725,7 +725,7 @@ connman_bool_t __connman_device_get_blocked(struct connman_device *device)
        return device->blocked;
 }
 
-int __connman_device_scan(struct connman_device *device)
+static int device_scan(struct connman_device *device)
 {
        if (!device->driver || !device->driver->scan)
                return -EOPNOTSUPP;
@@ -1310,7 +1310,7 @@ int __connman_device_request_scan(enum connman_service_type type)
                        continue;
                }
 
-               err = __connman_device_scan(device);
+               err = device_scan(device);
                if (err < 0 && err != -EINPROGRESS) {
                        DBG("err %d", err);
                        /* XXX maybe only a continue? */