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:
parent
0976fd063e
commit
ab17a7ef55
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue