CONNMAN_NETWORK_TYPE_HSO = 23,
};
+enum connman_network_protocol {
+ CONNMAN_NETWORK_PROTOCOL_UNKNOWN = 0,
+ CONNMAN_NETWORK_PROTOCOL_IP = 1,
+ CONNMAN_NETWORK_PROTOCOL_PPP = 2,
+};
+
struct connman_network;
extern struct connman_network *connman_network_create(const char *identifier,
int index);
extern int connman_network_get_index(struct connman_network *network);
+extern void connman_network_set_protocol(struct connman_network *network,
+ enum connman_network_protocol protocol);
+
extern int connman_network_set_connected(struct connman_network *network,
connman_bool_t connected);
struct connman_network {
struct connman_element element;
enum connman_network_type type;
+ enum connman_network_protocol protocol;
gboolean connected;
char *identifier;
char *path;
}
/**
+ * connman_network_set_protocol:
+ * @network: network structure
+ * @protocol: network protocol
+ *
+ * Change protocol of network
+ */
+void connman_network_set_protocol(struct connman_network *network,
+ enum connman_network_protocol protocol)
+{
+ network->protocol = protocol;
+}
+
+/**
* connman_network_set_connected:
* @network: network structure
* @connected: connected state