Top | ![]() |
![]() |
![]() |
![]() |
gboolean | snapd_system_information_get_on_classic () |
const gchar * | snapd_system_information_get_os_id () |
const gchar * | snapd_system_information_get_os_version () |
const gchar * | snapd_system_information_get_series () |
const gchar * | snapd_system_information_get_version () |
gboolean | on-classic | Read / Write / Construct Only |
gchar * | os-id | Read / Write / Construct Only |
gchar * | os-version | Read / Write / Construct Only |
gchar * | series | Read / Write / Construct Only |
gchar * | version | Read / Write / Construct Only |
A SnapdSystemInformation object contains the system information returned
from snapd. It is requested using snapd_client_get_system_information_sync()
.
gboolean
snapd_system_information_get_on_classic
(SnapdSystemInformation *system_information
);
Get if this system is a classic system.
const gchar *
snapd_system_information_get_os_id (SnapdSystemInformation *system_information
);
Get the operating system ID, e.g. "ubuntu".
const gchar *
snapd_system_information_get_os_version
(SnapdSystemInformation *system_information
);
Get the operating system version, e.g. "16.04".
const gchar *
snapd_system_information_get_series (SnapdSystemInformation *system_information
);
Get the series of snapd running, e.g. "16".
const gchar *
snapd_system_information_get_version (SnapdSystemInformation *system_information
);
Get the version of snapd running, e.g. "2.11+ppa174-1".
typedef struct _SnapdSystemInformation SnapdSystemInformation;
SnapdSystemInformation is an opaque data structure and can only be accessed using the provided functions.
“on-classic”
property“on-classic” gboolean
TRUE if running in a classic system.
Flags: Read / Write / Construct Only
Default value: FALSE
“os-id”
property“os-id” gchar *
Operating system ID.
Flags: Read / Write / Construct Only
Default value: NULL
“os-version”
property“os-version” gchar *
Operating system version.
Flags: Read / Write / Construct Only
Default value: NULL
“series”
property“series” gchar *
Snappy release series.
Flags: Read / Write / Construct Only
Default value: NULL
“version”
property“version” gchar *
Snappy version.
Flags: Read / Write / Construct Only
Default value: NULL