9
9
src/settings/plugins/ofono/nm-ofono-connection.h | 54 +
10
10
src/settings/plugins/ofono/nm-ofono.conf | 18
11
11
src/settings/plugins/ofono/nm-ofono.xml | 16
12
src/settings/plugins/ofono/parser.c | 124 ++++
12
src/settings/plugins/ofono/parser.c | 124 +++
13
13
src/settings/plugins/ofono/parser.h | 33 +
14
src/settings/plugins/ofono/plugin.c | 682 +++++++++++++++++++++++
14
src/settings/plugins/ofono/plugin.c | 738 +++++++++++++++++++++++
15
15
src/settings/plugins/ofono/plugin.h | 53 +
16
11 files changed, 1225 insertions(+)
16
11 files changed, 1281 insertions(+)
18
18
Index: b/configure.ac
19
19
===================================================================
545
545
===================================================================
547
547
+++ b/src/settings/plugins/ofono/plugin.c
549
549
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
551
551
+/* Ofono modem settings service
1009
1009
+static GSList*
1010
1010
+SCPluginOfono_get_connections (NMSystemConfigInterface *config);
1013
+GObject__get_property (GObject *object, guint prop_id,
1014
+ GValue *value, GParamSpec *pspec)
1016
+ NMSystemConfigInterface *self = NM_SYSTEM_CONFIG_INTERFACE (object);
1018
+ switch (prop_id) {
1019
+ case NM_SYSTEM_CONFIG_INTERFACE_PROP_NAME:
1020
+ g_value_set_string (value, OFONO_PLUGIN_NAME);
1022
+ case NM_SYSTEM_CONFIG_INTERFACE_PROP_INFO:
1023
+ g_value_set_string (value, OFONO_PLUGIN_INFO);
1025
+ case NM_SYSTEM_CONFIG_INTERFACE_PROP_CAPABILITIES:
1026
+ g_value_set_uint (value, 0);
1028
+ case NM_SYSTEM_CONFIG_INTERFACE_PROP_HOSTNAME:
1029
+ g_value_set_string (value, "");
1032
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
1038
+GObject__set_property (GObject *object, guint prop_id,
1039
+ const GValue *value, GParamSpec *pspec)
1041
+ switch (prop_id) {
1042
+ case NM_SYSTEM_CONFIG_INTERFACE_PROP_HOSTNAME:
1045
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
1014
1052
+dispose (GObject *object);
1029
1067
+ g_type_class_add_private (req_class, sizeof (SCPluginOfonoPrivate));
1031
1069
+ object_class->dispose = dispose;
1070
+ object_class->get_property = GObject__get_property;
1071
+ object_class->set_property = GObject__set_property;
1033
1073
+ dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (req_class),
1034
1074
+ &dbus_glib_nm_ofono_object_info);
1076
+ g_object_class_override_property (object_class,
1077
+ NM_SYSTEM_CONFIG_INTERFACE_PROP_NAME,
1078
+ NM_SYSTEM_CONFIG_INTERFACE_NAME);
1080
+ g_object_class_override_property (object_class,
1081
+ NM_SYSTEM_CONFIG_INTERFACE_PROP_INFO,
1082
+ NM_SYSTEM_CONFIG_INTERFACE_INFO);
1084
+ g_object_class_override_property (object_class,
1085
+ NM_SYSTEM_CONFIG_INTERFACE_PROP_CAPABILITIES,
1086
+ NM_SYSTEM_CONFIG_INTERFACE_CAPABILITIES);
1088
+ g_object_class_override_property (object_class,
1089
+ NM_SYSTEM_CONFIG_INTERFACE_PROP_HOSTNAME,
1090
+ NM_SYSTEM_CONFIG_INTERFACE_HOSTNAME);