summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2010-12-14 12:50:04 -0500
committerDavid Zeuthen <davidz@redhat.com>2010-12-14 12:50:04 -0500
commitab17a7ef55b2c3278839302cf3ba5d214d2b2b7d (patch)
tree239ca29e13a903b6390a78516e8f74cb6229b7f7
parent0976fd063e1e488e388ec922fcd4dbed5b8da938 (diff)
Add g_udev_device_get_is_initialized() method
Also nuke the "Index of deprecated symbols" since we have no deprecated symbols just yet. Signed-off-by: David Zeuthen <davidz@redhat.com>
-rw-r--r--extras/gudev/docs/gudev-docs.xml4
-rw-r--r--extras/gudev/docs/gudev-sections.txt1
-rw-r--r--extras/gudev/gudevdevice.c16
-rw-r--r--extras/gudev/gudevdevice.h1
-rwxr-xr-xextras/gudev/seed-example-enum.js1
5 files changed, 19 insertions, 4 deletions
diff --git a/extras/gudev/docs/gudev-docs.xml b/extras/gudev/docs/gudev-docs.xml
index fefae409d2..3a93b21720 100644
--- a/extras/gudev/docs/gudev-docs.xml
+++ b/extras/gudev/docs/gudev-docs.xml
@@ -85,10 +85,6 @@
<index>
<title>Index</title>
</index>
- <index role="deprecated">
- <title>Index of deprecated symbols</title>
- <xi:include href="xml/api-index-deprecated.xml"><xi:fallback /></xi:include>
- </index>
<index role="165">
<title>Index of new symbols in 165</title>
<xi:include href="xml/api-index-165.xml"><xi:fallback /></xi:include>
diff --git a/extras/gudev/docs/gudev-sections.txt b/extras/gudev/docs/gudev-sections.txt
index 15f1bb8d04..4119ae4920 100644
--- a/extras/gudev/docs/gudev-sections.txt
+++ b/extras/gudev/docs/gudev-sections.txt
@@ -41,6 +41,7 @@ g_udev_device_get_device_file_symlinks
g_udev_device_get_parent
g_udev_device_get_parent_with_subsystem
g_udev_device_get_tags
+g_udev_device_get_is_initialized
g_udev_device_get_property_keys
g_udev_device_has_property
g_udev_device_get_property
diff --git a/extras/gudev/gudevdevice.c b/extras/gudev/gudevdevice.c
index 4c41849bb1..8909178e4b 100644
--- a/extras/gudev/gudevdevice.c
+++ b/extras/gudev/gudevdevice.c
@@ -925,3 +925,19 @@ g_udev_device_get_tags (GUdevDevice *device)
return (const gchar * const *) device->priv->tags;
}
+/**
+ * g_udev_device_get_is_initialized:
+ * @device: A #GUdevDevice.
+ *
+ * Gets whether @device has been initalized.
+ *
+ * Returns: Whether @device has been initialized.
+ *
+ * Since: 165
+ */
+gboolean
+g_udev_device_get_is_initialized (GUdevDevice *device)
+{
+ g_return_val_if_fail (G_UDEV_IS_DEVICE (device), FALSE);
+ return udev_device_get_is_initialized (device->priv->udevice);
+}
diff --git a/extras/gudev/gudevdevice.h b/extras/gudev/gudevdevice.h
index ffd064d8ab..1ca2b48a04 100644
--- a/extras/gudev/gudevdevice.h
+++ b/extras/gudev/gudevdevice.h
@@ -76,6 +76,7 @@ struct _GUdevDeviceClass
};
GType g_udev_device_get_type (void) G_GNUC_CONST;
+gboolean g_udev_device_get_is_initialized (GUdevDevice *device);
const gchar *g_udev_device_get_subsystem (GUdevDevice *device);
const gchar *g_udev_device_get_devtype (GUdevDevice *device);
const gchar *g_udev_device_get_name (GUdevDevice *device);
diff --git a/extras/gudev/seed-example-enum.js b/extras/gudev/seed-example-enum.js
index 2aa80362ea..32200a42f9 100755
--- a/extras/gudev/seed-example-enum.js
+++ b/extras/gudev/seed-example-enum.js
@@ -4,6 +4,7 @@ const GLib = imports.gi.GLib;
const GUdev = imports.gi.GUdev;
function print_device(device) {
+ print(" initialized: " + device.get_is_initialized());
print(" subsystem: " + device.get_subsystem());
print(" devtype: " + device.get_devtype());
print(" name: " + device.get_name());