summaryrefslogtreecommitdiff
path: root/libqmi-glib
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-10-09 11:11:44 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-10-09 15:23:47 +0200
commitd2e47956d284aa8357c1139db9db88bbf5edd892 (patch)
treefaed25e0bb8e191ea1e18455f7682eeefd7aca64 /libqmi-glib
parentd782748cc8ed891a2358bf8a4a8943039e73e201 (diff)
libqmi-glib: completely hide the implicit CTL Client in the API
Diffstat (limited to 'libqmi-glib')
-rw-r--r--libqmi-glib/qmi-device.c16
-rw-r--r--libqmi-glib/qmi-device.h3
2 files changed, 1 insertions, 18 deletions
diff --git a/libqmi-glib/qmi-device.c b/libqmi-glib/qmi-device.c
index 549296c..811a54d 100644
--- a/libqmi-glib/qmi-device.c
+++ b/libqmi-glib/qmi-device.c
@@ -58,7 +58,6 @@ G_DEFINE_TYPE_EXTENDED (QmiDevice, qmi_device, G_TYPE_OBJECT, 0,
enum {
PROP_0,
PROP_FILE,
- PROP_CLIENT_CTL,
PROP_LAST
};
@@ -1997,10 +1996,6 @@ set_property (GObject *object,
self->priv->path = g_file_get_path (self->priv->file);
self->priv->path_display = g_filename_display_name (self->priv->path);
break;
- case PROP_CLIENT_CTL:
- /* Not writable */
- g_assert_not_reached ();
- break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -2019,9 +2014,6 @@ get_property (GObject *object,
case PROP_FILE:
g_value_set_object (value, self->priv->file);
break;
- case PROP_CLIENT_CTL:
- g_value_set_object (value, self->priv->client_ctl);
- break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -2131,12 +2123,4 @@ qmi_device_class_init (QmiDeviceClass *klass)
G_TYPE_FILE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
g_object_class_install_property (object_class, PROP_FILE, properties[PROP_FILE]);
-
- properties[PROP_CLIENT_CTL] =
- g_param_spec_object (QMI_DEVICE_CLIENT_CTL,
- "CTL client",
- "Implicit CTL client",
- QMI_TYPE_CLIENT_CTL,
- G_PARAM_READABLE);
- g_object_class_install_property (object_class, PROP_CLIENT_CTL, properties[PROP_CLIENT_CTL]);
}
diff --git a/libqmi-glib/qmi-device.h b/libqmi-glib/qmi-device.h
index f43a73f..f00bd03 100644
--- a/libqmi-glib/qmi-device.h
+++ b/libqmi-glib/qmi-device.h
@@ -47,8 +47,7 @@ typedef struct _QmiDevice QmiDevice;
typedef struct _QmiDeviceClass QmiDeviceClass;
typedef struct _QmiDevicePrivate QmiDevicePrivate;
-#define QMI_DEVICE_FILE "device-file"
-#define QMI_DEVICE_CLIENT_CTL "device-client-ctl"
+#define QMI_DEVICE_FILE "device-file"
/**
* QmiDevice: