ethernet: Add tethering support
[platform/upstream/connman.git] / include / device.h
index 5339e98..3382575 100644 (file)
@@ -39,11 +39,10 @@ enum connman_device_type {
        CONNMAN_DEVICE_TYPE_UNKNOWN   = 0,
        CONNMAN_DEVICE_TYPE_ETHERNET  = 1,
        CONNMAN_DEVICE_TYPE_WIFI      = 2,
-       CONNMAN_DEVICE_TYPE_WIMAX     = 3,
-       CONNMAN_DEVICE_TYPE_BLUETOOTH = 4,
-       CONNMAN_DEVICE_TYPE_CELLULAR  = 5,
-       CONNMAN_DEVICE_TYPE_GPS       = 6,
-       CONNMAN_DEVICE_TYPE_GADGET    = 7,
+       CONNMAN_DEVICE_TYPE_BLUETOOTH = 3,
+       CONNMAN_DEVICE_TYPE_CELLULAR  = 4,
+       CONNMAN_DEVICE_TYPE_GPS       = 5,
+       CONNMAN_DEVICE_TYPE_GADGET    = 6,
        CONNMAN_DEVICE_TYPE_VENDOR    = 10000,
 };
 
@@ -80,6 +79,7 @@ const char *connman_device_get_ident(struct connman_device *device);
 
 int connman_device_set_powered(struct connman_device *device,
                                                connman_bool_t powered);
+connman_bool_t connman_device_get_powered(struct connman_device *device);
 int connman_device_set_scanning(struct connman_device *device,
                                                connman_bool_t scanning);
 connman_bool_t connman_device_get_scanning(struct connman_device *device);
@@ -112,6 +112,10 @@ int connman_device_set_regdom(struct connman_device *device,
                                                const char *alpha2);
 void connman_device_regdom_notify(struct connman_device *device,
                                        int result, const char *alpha2);
+struct connman_device *connman_device_create_from_index(int index);
+struct connman_device *connman_device_find_by_index(int index);
+int connman_device_disconnect_service(struct connman_device *device);
+int connman_device_reconnect_service(struct connman_device *device);
 
 struct connman_device_driver {
        const char *name;