Top |
gchar * | binaries-directory | Read / Write / Construct Only |
gchar * | build-id | Read / Write / Construct Only |
SnapdSystemConfinement | confinement | Read / Write / Construct Only |
gchar * | kernel-version | Read / Write / Construct Only |
gboolean | managed | Read / Write / Construct Only |
gchar * | mount-directory | Read / Write / Construct Only |
gboolean | on-classic | Read / Write / Construct Only |
gchar * | os-id | Read / Write / Construct Only |
gchar * | os-version | Read / Write / Construct Only |
GDateTime * | refresh-hold | Read / Write / Construct Only |
GDateTime * | refresh-last | Read / Write / Construct Only |
GDateTime * | refresh-next | Read / Write / Construct Only |
gchar * | refresh-schedule | Read / Write / Construct Only |
gchar * | refresh-timer | Read / Write / Construct Only |
gpointer | sandbox-features | Read / Write / Construct Only |
gchar * | series | Read / Write / Construct Only |
gchar * | store | 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()
.
const gchar *
snapd_system_information_get_binaries_directory
(SnapdSystemInformation *system_information
);
Get the directory snap binaries are stored, e.g. "/snap/bin".
Since: 1.11
const gchar *
snapd_system_information_get_build_id (SnapdSystemInformation *system_information
);
Gets the unique build ID for the snap build, e.g. "efdd0b5e69b0742fa5e5bad0771df4d1df2459d1"
Since: 1.40
SnapdSystemConfinement
snapd_system_information_get_confinement
(SnapdSystemInformation *system_information
);
Get the level of confinement the system supports, e.g. SNAPD_SYSTEM_CONFINEMENT_STRICT
.
Since: 1.15
const gchar *
snapd_system_information_get_kernel_version
(SnapdSystemInformation *system_information
);
Get the version of the kernel snapd is running on, e.g. "4.10.0-15-generic".
Since: 1.11
gboolean
snapd_system_information_get_managed (SnapdSystemInformation *system_information
);
Get if snapd is running on a managed system.
Since: 1.7
const gchar *
snapd_system_information_get_mount_directory
(SnapdSystemInformation *system_information
);
Get the directory snaps are mounted, e.g. "/snap".
Since: 1.11
gboolean
snapd_system_information_get_on_classic
(SnapdSystemInformation *system_information
);
Get if this system is a classic system.
Since: 1.0
const gchar *
snapd_system_information_get_os_id (SnapdSystemInformation *system_information
);
Get the operating system ID, e.g. "ubuntu".
Since: 1.0
const gchar *
snapd_system_information_get_os_version
(SnapdSystemInformation *system_information
);
Get the operating system version, e.g. "16.04".
Since: 1.0
GDateTime *
snapd_system_information_get_refresh_hold
(SnapdSystemInformation *system_information
);
Get the time refreshes will be applied at, or NULL
if they are applied immediately.
Since: 1.42
GDateTime *
snapd_system_information_get_refresh_last
(SnapdSystemInformation *system_information
);
Get the time the last refresh occurred, or NULL
if has not occurred.
Since: 1.42
GDateTime *
snapd_system_information_get_refresh_next
(SnapdSystemInformation *system_information
);
Get the time the next refresh is scheduled for, or NULL
if none has been scheduled.
Since: 1.42
const gchar *
snapd_system_information_get_refresh_schedule
(SnapdSystemInformation *system_information
);
Get the schedule when snap refreshes will occur.
Since: 1.42
const gchar *
snapd_system_information_get_refresh_timer
(SnapdSystemInformation *system_information
);
Get the timer that refreshes are running to.
Since: 1.42
GHashTable *
snapd_system_information_get_sandbox_features
(SnapdSystemInformation *system_information
);
Gets the sandbox features that snapd provides. Each backend in snapd provides a list of features that it supports. For example, the "confinement-options" backend may provide "classic", "devmode" and "strict".
a hash table of string arrays keyed by backend name.
[transfer none][element-type utf8 GStrv]
Since: 1.42
const gchar *
snapd_system_information_get_series (SnapdSystemInformation *system_information
);
Get the series of snapd running, e.g. "16".
Since: 1.0
const gchar *
snapd_system_information_get_store (SnapdSystemInformation *system_information
);
Get the store being used by snapd, e.g. "Ubuntu"
Since: 1.7
const gchar *
snapd_system_information_get_version (SnapdSystemInformation *system_information
);
Get the version of snapd running, e.g. "2.11+ppa174-1".
Since: 1.0
typedef struct _SnapdSystemInformation SnapdSystemInformation;
SnapdSystemInformation contains information about the system snapd is running on.
Since: 1.0
“binaries-directory”
property“binaries-directory” gchar *
Directory with snap binaries.
Flags: Read / Write / Construct Only
Default value: NULL
“build-id”
property“build-id” gchar *
Unique build ID for snap build.
Flags: Read / Write / Construct Only
Default value: NULL
“confinement”
property“confinement” SnapdSystemConfinement
Confinement level supported by system.
Flags: Read / Write / Construct Only
Default value: SNAPD_SYSTEM_CONFINEMENT_UNKNOWN
“kernel-version”
property“kernel-version” gchar *
Kernel version.
Flags: Read / Write / Construct Only
Default value: NULL
“managed”
property“managed” gboolean
TRUE if snapd managing the system.
Flags: Read / Write / Construct Only
Default value: FALSE
“mount-directory”
property“mount-directory” gchar *
Directory snaps are mounted in.
Flags: Read / Write / Construct Only
Default value: NULL
“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
“refresh-hold”
property“refresh-hold” GDateTime *
Time refreshes will be applied.
Flags: Read / Write / Construct Only
“refresh-last”
property“refresh-last” GDateTime *
Last time a refresh occurred.
Flags: Read / Write / Construct Only
“refresh-next”
property“refresh-next” GDateTime *
Next time a refresh is scheduled for.
Flags: Read / Write / Construct Only
“refresh-schedule”
property“refresh-schedule” gchar *
Refresh schedule.
Flags: Read / Write / Construct Only
Default value: NULL
“refresh-timer”
property“refresh-timer” gchar *
Refresh timer.
Flags: Read / Write / Construct Only
Default value: NULL
“sandbox-features”
property“sandbox-features” gpointer
Sandbox features.
Flags: Read / Write / Construct Only
“series”
property“series” gchar *
Snappy release series.
Flags: Read / Write / Construct Only
Default value: NULL
“store”
property“store” gchar *
Snap store.
Flags: Read / Write / Construct Only
Default value: NULL
“version”
property“version” gchar *
Snappy version.
Flags: Read / Write / Construct Only
Default value: NULL