This email list is read-only. Emails sent to this list will be discarded
----------------------------------
doc/Makefile.am | 2 +-
doc/connection-api.txt | 29 +++++++++++++++++++++++++++++
include/element.h | 13 +++++++------
src/element.c | 2 ++
4 files changed, 39 insertions(+), 7 deletions(-)
New commits:
commit 54e282e202a13c398c1ea25171b47e98b5b56cae
Author: Marcel Holtmann <[EMAIL PROTECTED]>
Date: Wed Nov 26 20:00:11 2008 +0100
Fix broken newline entry
commit 9a1f19ccb4b1511e7b59d2c7f90434520bbfa943
Author: Marcel Holtmann <[EMAIL PROTECTED]>
Date: Wed Nov 26 19:59:08 2008 +0100
Add first draft of Connection interface API
commit dedfd9fbeb5f437c51d3fa5ba7798f45415173e7
Author: Marcel Holtmann <[EMAIL PROTECTED]>
Date: Wed Nov 26 19:52:58 2008 +0100
Add type constant for service elements
Diff in this email is a maximum of 400 lines.
diff --git a/doc/Makefile.am b/doc/Makefile.am
index ea75e7f..752c5cc 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -51,4 +51,4 @@ EXTRA_DIST += dbus-introspection.dtd dbus-introspection.xsl \
dbus-manager.xml
EXTRA_DIST += manager-api.txt device-api.txt network-api.txt \
- agent-api.txt plugin-api.txt
+ connection-api.txt agent-api.txt plugin-api.txt
diff --git a/doc/connection-api.txt b/doc/connection-api.txt
new file mode 100644
index 0000000..f0fba37
--- /dev/null
+++ b/doc/connection-api.txt
@@ -0,0 +1,29 @@
+Connection hierarchy
+====================
+
+Service org.moblin.connman
+Interface org.moblin.connman.Connection
+Object path [variable prefix]/{connection0,connection1,...}
+
+Methods dict GetProperties()
+
+ Returns properties for the connection object. See
+ the properties section for available properties.
+
+ Possible Errors: [service].Error.InvalidArguments
+ [service].Error.DoesNotExist
+
+Signals PropertyChanged(string name, variant value)
+
+ This signal indicates a changed value of the given
+ property.
+
+Properties string IPv4.Method [readonly]
+
+ Indicates the way how the IPv4 settings were
+ configured. Possible values here are "dhcp"
+ and "static".
+
+ string IPv4.Address [readonly]
+
+ Shows the current configured IPv4 address.
diff --git a/include/element.h b/include/element.h
index 1607f82..0a96397 100644
--- a/include/element.h
+++ b/include/element.h
@@ -58,12 +58,13 @@ enum connman_element_type {
CONNMAN_ELEMENT_TYPE_PROFILE = 2,
CONNMAN_ELEMENT_TYPE_DEVICE = 3,
CONNMAN_ELEMENT_TYPE_NETWORK = 4,
- CONNMAN_ELEMENT_TYPE_IPV4 = 5,
- CONNMAN_ELEMENT_TYPE_IPV6 = 6,
- CONNMAN_ELEMENT_TYPE_DHCP = 7,
- CONNMAN_ELEMENT_TYPE_BOOTP = 8,
- CONNMAN_ELEMENT_TYPE_ZEROCONF = 9,
- CONNMAN_ELEMENT_TYPE_RESOLVER = 10,
+ CONNMAN_ELEMENT_TYPE_SERVICE = 5,
+ CONNMAN_ELEMENT_TYPE_IPV4 = 6,
+ CONNMAN_ELEMENT_TYPE_IPV6 = 7,
+ CONNMAN_ELEMENT_TYPE_DHCP = 8,
+ CONNMAN_ELEMENT_TYPE_BOOTP = 9,
+ CONNMAN_ELEMENT_TYPE_ZEROCONF = 10,
+ CONNMAN_ELEMENT_TYPE_RESOLVER = 11,
CONNMAN_ELEMENT_TYPE_CONNECTION = 42,
};
diff --git a/src/element.c b/src/element.c
index eb9c07f..6e14a8c 100644
--- a/src/element.c
+++ b/src/element.c
@@ -103,6 +103,8 @@ static const char *type2string(enum connman_element_type
type)
return "device";
case CONNMAN_ELEMENT_TYPE_NETWORK:
return "network";
+ case CONNMAN_ELEMENT_TYPE_SERVICE:
+ return "service";
case CONNMAN_ELEMENT_TYPE_IPV4:
return "ipv4";
case CONNMAN_ELEMENT_TYPE_IPV6:
_______________________________________________
Commits mailing list
[email protected]
https://lists.moblin.org/mailman/listinfo/commits