Class
AppStreamSystemInfo
Constructors
as_system_info_new_template_for_chassis
Creates a new AsSystemInfo
that can be used as a mock system
for the given chassis type, reading (mostly) no information
from the current system.
since: 1.0.0
Instance methods
as_system_info_get_device_name_for_modalias
Return a human readable device name for the given modalias.
Will return the modalias again if no device name could be found,
and returns NULL
on error.
If allow_fallback
is set to FALSE
, this function will return NULL
and error
AS_SYSTEM_INFO_ERROR_NOT_FOUND
in case no suitable description could be found.
as_system_info_get_display_length
Get the current display length for the given side kind. If the display size is unknown, this function will return 0.
as_system_info_get_gui_available
Check whether graphical applications can be displayed via X11 or Wayland.
as_system_info_get_modaliases
Get a list of modaliases for all the hardware on this system that has them.
as_system_info_has_device_matching_modalias
Check if there is a device on this system that matches the given modalias glob.
as_system_info_has_input_control
Test if the current system has a specific user input control method.
Returns AS_CHECK_RESULT_UNKNOWN
if we could not test for an input control method,
AS_CHECK_RESULT_ERROR
on error and AS_CHECK_RESULT_FALSE
if the control was not found.
as_system_info_set_display_length
Set the current display length for the given side kind. The size needs to be in device-independent pixels, see the AppStream documentation for more information: https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-relations-display_length.
as_system_info_set_input_control
Explicitly mark a user input control as present or not present on this system.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct AppStreamSystemInfoClass {
GObjectClass parent_class;
void (* _as_reserved1) (
void
);
void (* _as_reserved2) (
void
);
void (* _as_reserved3) (
void
);
void (* _as_reserved4) (
void
);
void (* _as_reserved5) (
void
);
void (* _as_reserved6) (
void
);
}
No description available.
Class members
parent_class: GObjectClass
No description available.
_as_reserved1: void (* _as_reserved1) ( void )
No description available.
_as_reserved2: void (* _as_reserved2) ( void )
No description available.
_as_reserved3: void (* _as_reserved3) ( void )
No description available.
_as_reserved4: void (* _as_reserved4) ( void )
No description available.
_as_reserved5: void (* _as_reserved5) ( void )
No description available.
_as_reserved6: void (* _as_reserved6) ( void )
No description available.