summaryrefslogtreecommitdiff
path: root/include/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/network.h')
-rw-r--r--include/network.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/network.h b/include/network.h
index 65504935..fcb6905e 100644
--- a/include/network.h
+++ b/include/network.h
@@ -1,9 +1,8 @@
-
/*
*
* Connection Manager
*
- * Copyright (C) 2007-2012 Intel Corporation. All rights reserved.
+ * Copyright (C) 2007-2013 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -23,9 +22,9 @@
#ifndef __CONNMAN_NETWORK_H
#define __CONNMAN_NETWORK_H
+#include <stdbool.h>
#include <stdint.h>
-#include <connman/types.h>
#include <connman/device.h>
#include <connman/ipconfig.h>
@@ -46,6 +45,7 @@ enum connman_network_type {
CONNMAN_NETWORK_TYPE_BLUETOOTH_PAN = 8,
CONNMAN_NETWORK_TYPE_BLUETOOTH_DUN = 9,
CONNMAN_NETWORK_TYPE_CELLULAR = 10,
+ CONNMAN_NETWORK_TYPE_GADGET = 11,
CONNMAN_NETWORK_TYPE_VENDOR = 10000,
};
@@ -88,20 +88,20 @@ void connman_network_set_group(struct connman_network *network,
const char *group);
const char *connman_network_get_group(struct connman_network *network);
-connman_bool_t connman_network_get_connecting(struct connman_network *network);
+bool connman_network_get_connecting(struct connman_network *network);
int connman_network_set_available(struct connman_network *network,
- connman_bool_t available);
-connman_bool_t connman_network_get_available(struct connman_network *network);
+ bool available);
+bool connman_network_get_available(struct connman_network *network);
int connman_network_set_associating(struct connman_network *network,
- connman_bool_t associating);
+ bool associating);
void connman_network_set_error(struct connman_network *network,
enum connman_network_error error);
void connman_network_clear_error(struct connman_network *network);
int connman_network_set_connected(struct connman_network *network,
- connman_bool_t connected);
-connman_bool_t connman_network_get_connected(struct connman_network *network);
+ bool connected);
+bool connman_network_get_connected(struct connman_network *network);
-connman_bool_t connman_network_get_associating(struct connman_network *network);
+bool connman_network_get_associating(struct connman_network *network);
void connman_network_clear_hidden(void *user_data);
int connman_network_connect_hidden(struct connman_network *network,
@@ -134,8 +134,8 @@ int connman_network_set_string(struct connman_network *network,
const char *connman_network_get_string(struct connman_network *network,
const char *key);
int connman_network_set_bool(struct connman_network *network,
- const char *key, connman_bool_t value);
-connman_bool_t connman_network_get_bool(struct connman_network *network,
+ const char *key, bool value);
+bool connman_network_get_bool(struct connman_network *network,
const char *key);
int connman_network_set_blob(struct connman_network *network,
const char *key, const void *data, unsigned int size);