]> err.no Git - systemd/commitdiff
Add g_udev_device_get_is_initialized() method
authorDavid Zeuthen <davidz@redhat.com>
Tue, 14 Dec 2010 17:50:04 +0000 (12:50 -0500)
committerDavid Zeuthen <davidz@redhat.com>
Tue, 14 Dec 2010 17:50:04 +0000 (12:50 -0500)
Also nuke the "Index of deprecated symbols" since we have no
deprecated symbols just yet.

Signed-off-by: David Zeuthen <davidz@redhat.com>
extras/gudev/docs/gudev-docs.xml
extras/gudev/docs/gudev-sections.txt
extras/gudev/gudevdevice.c
extras/gudev/gudevdevice.h
extras/gudev/seed-example-enum.js

index fefae409d2352b0ce8783f8c8fddf8581a1ad234..3a93b21720116fe9d254f5acec8a54d431d9979d 100644 (file)
   <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>
index 15f1bb8d04dba6d22ed965c9aa640628b593d53d..4119ae4920e6107075bae50af9aee6e52ff987a9 100644 (file)
@@ -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
index 4c41849bb1ac3099f1a2f7b6584a4139cd89d2e4..8909178e4b0cf5a87cef91053fdeea95151b6de4 100644 (file)
@@ -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);
+}
index ffd064d8abf965528d086b344d755b4a521fd057..1ca2b48a04ef904a64374ea1a5e33000a296f30a 100644 (file)
@@ -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);
index 2aa80362ea7fedf9e11115f4b4866ae6d0571ffd..32200a42f91e133fc62a7d65d5264df1aa4a8029 100755 (executable)
@@ -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());