Top | ![]() |
![]() |
![]() |
![]() |
const gchar * | ldm_plugin_get_name () |
void | ldm_plugin_set_name () |
gint | ldm_plugin_get_priority () |
void | ldm_plugin_set_priority () |
LdmProvider * | ldm_plugin_get_provider () |
An LdmPlugin is used to find potential software that the user should have present or install to facilitate some hardware support.
The base LdmPlugin implementation does nothing by itself, and must be extended to be useful.
const gchar *
ldm_plugin_get_name (LdmPlugin *plugin
);
Get the name of this plugin
void ldm_plugin_set_name (LdmPlugin *plugin
,const gchar *name
);
Set the name of the plugin
gint
ldm_plugin_get_priority (LdmPlugin *plugin
);
Get the set priority of this plugin
void ldm_plugin_set_priority (LdmPlugin *plugin
,gint priority
);
Set the plugin priority, useful for sorting.
LdmProvider * ldm_plugin_get_provider (LdmPlugin *self
,LdmDevice *device
);
Virtual method that must be overridden by plugin implementations to provide the required LdmProvider solution for the given hardware.
This may return NULL if the plugin doesn't support the given device.
“name”
property“name” gchar *
The display name for this plugin
Flags: Read / Write
Default value: NULL
“priority”
property“priority” gint
Priority for this plugin implementation. This can be useful in cases where multiple plugins match some hardware, and the implementation can opt to use the highest priority plugin (i.e. multiple nvidia providers)
Flags: Read / Write
Allowed values: [0,1000]
Default value: 0