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>
This commit is contained in:
David Zeuthen 2010-12-14 12:50:04 -05:00
parent 0976fd063e
commit ab17a7ef55
5 changed files with 19 additions and 4 deletions

View File

@ -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>

View 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

View 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);
}

View 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);

View File

@ -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());