LdmProvider

LdmProvider — Hardware enabling information

Functions

Properties

gpointer device Read / Write / Construct Only
gchar * package Read / Write / Construct Only
gpointer plugin Read / Write / Construct Only

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── LdmProvider

Description

An LdmProvider is the result type when searching for hardware providers using the LdmManager plugins.

Functions

ldm_provider_new ()

LdmProvider *
ldm_provider_new (LdmPlugin *parent_plugin,
                  LdmDevice *device,
                  const gchar *package_name);

Construct a new LdmProvider with the given plugin and device for further processing by the library end user.

Parameters

parent_plugin

The plugin to associate this provider with

 

device

The device to associate this provider with

 

package_name

The package or bundle name to install.

 

Returns

A new LdmProvider instance.

[transfer full]


ldm_provider_get_device ()

LdmDevice *
ldm_provider_get_device (LdmProvider *provider);

Get the device for this particular provider instance. This device is the one that was used by the “plugin” to construct this particular LdmProvider instance.

Returns

The associated LdmDevice.

[transfer none]


ldm_provider_get_plugin ()

LdmPlugin *
ldm_provider_get_plugin (LdmProvider *provider);

Get the LdmPlugin that constructed this provider instance.

Returns

The parent LdmPlugin.

[transfer none]


ldm_provider_get_package ()

const gchar *
ldm_provider_get_package (LdmProvider *provider);

Get the package name required to install this provider.

Returns

The package name.

[transfer none]

Types and Values

Property Details

The “device” property

  “device”                   gpointer

Device associated with this LdmProvider

[transfer none]

Flags: Read / Write / Construct Only


The “package” property

  “package”                  gchar *

The package or bundle name required to install support for this provider.

[transfer none]

Flags: Read / Write / Construct Only

Default value: NULL


The “plugin” property

  “plugin”                   gpointer

Plugin associated with this LdmProvider. This is the LdmPlugin instance responsible for creating this provider, and provided the initial detection routine.

[transfer none]

Flags: Read / Write / Construct Only

See Also

LdmDevice, LdmManager