SnapdSystemInformation

SnapdSystemInformation — System information class

Functions

Properties

gboolean managed 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
gchar * series Read / Write / Construct Only
gchar * store Read / Write / Construct Only
gchar * version Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── SnapdSystemInformation

Includes

#include <snapd-glib/snapd-glib.h>

Description

A SnapdSystemInformation object contains the system information returned from snapd. It is requested using snapd_client_get_system_information_sync().

Functions

snapd_system_information_get_managed ()

gboolean
snapd_system_information_get_managed (SnapdSystemInformation *system_information);

Get if snapd is running on a managed system.

Parameters

system_information

a SnapdSystemInformation.

 

Returns

TRUE if running on a managed system.


snapd_system_information_get_on_classic ()

gboolean
snapd_system_information_get_on_classic
                               (SnapdSystemInformation *system_information);

Get if this system is a classic system.

Parameters

system_information

a SnapdSystemInformation.

 

Returns

TRUE if running on a classic system.


snapd_system_information_get_os_id ()

const gchar *
snapd_system_information_get_os_id (SnapdSystemInformation *system_information);

Get the operating system ID, e.g. "ubuntu".

Parameters

system_information

a SnapdSystemInformation.

 

Returns

an operating system ID.


snapd_system_information_get_os_version ()

const gchar *
snapd_system_information_get_os_version
                               (SnapdSystemInformation *system_information);

Get the operating system version, e.g. "16.04".

Parameters

system_information

a SnapdSystemInformation.

 

Returns

a version string.


snapd_system_information_get_series ()

const gchar *
snapd_system_information_get_series (SnapdSystemInformation *system_information);

Get the series of snapd running, e.g. "16".

Parameters

system_information

a SnapdSystemInformation.

 

Returns

a series string.


snapd_system_information_get_store ()

const gchar *
snapd_system_information_get_store (SnapdSystemInformation *system_information);

Get the store being used by snapd, e.g. "Ubuntu"

Parameters

system_information

a SnapdSystemInformation.

 

Returns

a store id or NULL.

[allow-none]


snapd_system_information_get_version ()

const gchar *
snapd_system_information_get_version (SnapdSystemInformation *system_information);

Get the version of snapd running, e.g. "2.11+ppa174-1".

Parameters

system_information

a SnapdSystemInformation.

 

Returns

a version string.

Types and Values

SnapdSystemInformation

typedef struct _SnapdSystemInformation SnapdSystemInformation;

SnapdSystemInformation is an opaque data structure and can only be accessed using the provided functions.

Property Details

The “managed” property

  “managed”                  gboolean

TRUE if snapd managing the system.

Flags: Read / Write / Construct Only

Default value: FALSE


The “on-classic” property

  “on-classic”               gboolean

TRUE if running in a classic system.

Flags: Read / Write / Construct Only

Default value: FALSE


The “os-id” property

  “os-id”                    gchar *

Operating system ID.

Flags: Read / Write / Construct Only

Default value: NULL


The “os-version” property

  “os-version”               gchar *

Operating system version.

Flags: Read / Write / Construct Only

Default value: NULL


The “series” property

  “series”                   gchar *

Snappy release series.

Flags: Read / Write / Construct Only

Default value: NULL


The “store” property

  “store”                    gchar *

Snap store.

Flags: Read / Write / Construct Only

Default value: NULL


The “version” property

  “version”                  gchar *

Snappy version.

Flags: Read / Write / Construct Only

Default value: NULL