doc: Remove methods to lookup and connect services
[framework/connectivity/connman.git] / include / device.h
index 81a5768..3749a20 100644 (file)
@@ -43,6 +43,7 @@ enum connman_device_type {
        CONNMAN_DEVICE_TYPE_BLUETOOTH = 4,
        CONNMAN_DEVICE_TYPE_CELLULAR  = 5,
        CONNMAN_DEVICE_TYPE_GPS       = 6,
+       CONNMAN_DEVICE_TYPE_GADGET    = 7,
        CONNMAN_DEVICE_TYPE_VENDOR    = 10000,
 };
 
@@ -58,12 +59,10 @@ struct connman_device *connman_device_ref(struct connman_device *device);
 void connman_device_unref(struct connman_device *device);
 
 enum connman_device_type connman_device_get_type(struct connman_device *device);
-const char *connman_device_get_name(struct connman_device *device);
 void connman_device_set_index(struct connman_device *device, int index);
 int connman_device_get_index(struct connman_device *device);
 void connman_device_set_interface(struct connman_device *device,
-                               const char *interface, const char *control);
-const char *connman_device_get_control(struct connman_device *device);
+                                               const char *interface);
 
 void connman_device_set_ident(struct connman_device *device,
                                                const char *ident);
@@ -73,12 +72,11 @@ int connman_device_set_powered(struct connman_device *device,
                                                connman_bool_t powered);
 int connman_device_set_scanning(struct connman_device *device,
                                                connman_bool_t scanning);
+void connman_device_reset_scanning(struct connman_device *device);
 
 int connman_device_set_disconnected(struct connman_device *device,
                                                connman_bool_t disconnected);
 connman_bool_t connman_device_get_disconnected(struct connman_device *device);
-int connman_device_set_connected(struct connman_device *device,
-                                               connman_bool_t connected);
 
 int connman_device_set_string(struct connman_device *device,
                                        const char *key, const char *value);
@@ -90,7 +88,7 @@ int connman_device_add_network(struct connman_device *device,
 struct connman_network *connman_device_get_network(struct connman_device *device,
                                                        const char *identifier);
 int connman_device_remove_network(struct connman_device *device,
-                                                       const char *identifier);
+                                       struct connman_network *network);
 void connman_device_remove_all_networks(struct connman_device *device);
 
 void connman_device_schedule_scan(struct connman_device *device);
@@ -110,6 +108,7 @@ struct connman_device_driver {
        int (*enable) (struct connman_device *device);
        int (*disable) (struct connman_device *device);
        int (*scan) (struct connman_device *device);
+       int (*scan_fast) (struct connman_device *device);
 };
 
 int connman_device_driver_register(struct connman_device_driver *driver);