summaryrefslogtreecommitdiff
path: root/include/element.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-11-24 16:38:39 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-11-24 16:38:39 +0100
commitaeea2a47158da318eeb017d8ae028d5c23024647 (patch)
treece2f9c1c0168996515808db4a5865aae709c7bd9 /include/element.h
parentca702380ea9b34aae28bd69ff7fa0b757092a94b (diff)
downloadconnman-aeea2a47158da318eeb017d8ae028d5c23024647.tar.gz
connman-aeea2a47158da318eeb017d8ae028d5c23024647.tar.bz2
connman-aeea2a47158da318eeb017d8ae028d5c23024647.zip
Add policy setting and export it
Diffstat (limited to 'include/element.h')
-rw-r--r--include/element.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/element.h b/include/element.h
index 55f95937..1607f823 100644
--- a/include/element.h
+++ b/include/element.h
@@ -44,6 +44,14 @@ enum connman_element_state {
CONNMAN_ELEMENT_STATE_CLOSED = 3,
};
+enum connman_element_policy {
+ CONNMAN_ELEMENT_POLICY_UNKNOWN = 0,
+ CONNMAN_ELEMENT_POLICY_OFF = 1,
+ CONNMAN_ELEMENT_POLICY_AUTO = 2,
+ CONNMAN_ELEMENT_POLICY_IGNORE = 3,
+ CONNMAN_ELEMENT_POLICY_ASK = 4,
+};
+
enum connman_element_type {
CONNMAN_ELEMENT_TYPE_UNKNOWN = 0,
CONNMAN_ELEMENT_TYPE_ROOT = 1,
@@ -82,6 +90,7 @@ struct connman_element {
enum connman_element_type type;
enum connman_element_subtype subtype;
enum connman_element_state state;
+ enum connman_element_policy policy;
gboolean enabled;
guint16 priority;