| Top |
| GPtrArray * | snapd_snap_get_apps () |
| const gchar * | snapd_snap_get_channel () |
| SnapdConfinement | snapd_snap_get_confinement () |
| const gchar * | snapd_snap_get_description () |
| const gchar * | snapd_snap_get_developer () |
| gboolean | snapd_snap_get_devmode () |
| gint64 | snapd_snap_get_download_size () |
| const gchar * | snapd_snap_get_icon () |
| const gchar * | snapd_snap_get_id () |
| GDateTime * | snapd_snap_get_install_date () |
| gint64 | snapd_snap_get_installed_size () |
| const gchar * | snapd_snap_get_name () |
| GPtrArray * | snapd_snap_get_prices () |
| gboolean | snapd_snap_get_private () |
| const gchar * | snapd_snap_get_revision () |
| SnapdSnapType | snapd_snap_get_snap_type () |
| SnapdSnapStatus | snapd_snap_get_status () |
| const gchar * | snapd_snap_get_summary () |
| gboolean | snapd_snap_get_trymode () |
| const gchar * | snapd_snap_get_version () |
| GPtrArray * | apps | Read / Write / Construct Only |
| gchar * | channel | Read / Write / Construct Only |
| SnapdConfinement | confinement | Read / Write / Construct Only |
| gchar * | description | Read / Write / Construct Only |
| gchar * | developer | Read / Write / Construct Only |
| gboolean | devmode | Read / Write / Construct Only |
| gint64 | download-size | Read / Write / Construct Only |
| gchar * | icon | Read / Write / Construct Only |
| gchar * | id | Read / Write / Construct Only |
| GDateTime * | install-date | Read / Write / Construct Only |
| gint64 | installed-size | Read / Write / Construct Only |
| gchar * | name | Read / Write / Construct Only |
| GPtrArray * | prices | Read / Write / Construct Only |
| gboolean | private | Read / Write / Construct Only |
| gchar * | revision | Read / Write / Construct Only |
| SnapdSnapType | snap-type | Read / Write / Construct Only |
| SnapdSnapStatus | status | Read / Write / Construct Only |
| gchar * | summary | Read / Write / Construct Only |
| gboolean | trymode | Read / Write / Construct Only |
| gchar * | version | Read / Write / Construct Only |
A SnapdSnap contains the metadata for a given snap. Snap metadata can be
retrieved using snapd_client_list_sync(), snapd_client_list_one_sync() or
snapd_client_find_sync().
GPtrArray *
snapd_snap_get_apps (SnapdSnap *snap);
Get the apps this snap provides.
const gchar *
snapd_snap_get_channel (SnapdSnap *snap);
Get the channel this snap is from, e.g. "stable".
SnapdConfinement
snapd_snap_get_confinement (SnapdSnap *snap);
Get the confinement this snap is using, e.g. SNAPD_CONFINEMENT_STRICT.
const gchar *
snapd_snap_get_description (SnapdSnap *snap);
Get a multi-line description of this snap.
const gchar *
snapd_snap_get_developer (SnapdSnap *snap);
Get the developer who created this snap.
gboolean
snapd_snap_get_devmode (SnapdSnap *snap);
Get if this snap is running in developmer mode.
gint64
snapd_snap_get_download_size (SnapdSnap *snap);
Get the download size of this snap or 0 if unknown.
const gchar *
snapd_snap_get_icon (SnapdSnap *snap);
Get the icon for this Snap, either a URL or an absolute path to retrieve it from snapd directly.
const gchar *
snapd_snap_get_id (SnapdSnap *snap);
Gets the unique ID for this snap.
GDateTime *
snapd_snap_get_install_date (SnapdSnap *snap);
Get the date this snap was installed or NULL if unknown.
gint64
snapd_snap_get_installed_size (SnapdSnap *snap);
Get the installed size of this snap or 0 if unknown.
const gchar *
snapd_snap_get_name (SnapdSnap *snap);
Get the name of this snap. This is used to reference this snap, e.g. for installing / removing.
GPtrArray *
snapd_snap_get_prices (SnapdSnap *snap);
Get the prices that this snap can be purchased at.
gboolean
snapd_snap_get_private (SnapdSnap *snap);
Get if this snap is only available to the developer.
const gchar *
snapd_snap_get_revision (SnapdSnap *snap);
Get the revision for this snap. The format of the string is undefined.
See also snapd_snap_get_version().
SnapdSnapType
snapd_snap_get_snap_type (SnapdSnap *snap);
Get the type of snap, e.g. SNAPD_SNAP_TYPE_APP
SnapdSnapStatus
snapd_snap_get_status (SnapdSnap *snap);
Get the current status of this snap, e.g. SNAPD_SNAP_STATUS_INSTALLED.
const gchar *
snapd_snap_get_summary (SnapdSnap *snap);
Get a single line summary for this snap, e.g. "Best app ever!".
gboolean
snapd_snap_get_trymode (SnapdSnap *snap);
Get if this snap is running in try mode (installed locally and able to be directly modified).
const gchar *
snapd_snap_get_version (SnapdSnap *snap);
Get the version for this snap. The format of the string is undefined.
See also snapd_snap_get_revision().
The current state of a snap.
typedef struct _SnapdSnap SnapdSnap;
SnapdSnap is an opaque data structure and can only be accessed using the provided functions.
“apps” property“apps” GPtrArray *
Apps this snap contains.
Flags: Read / Write / Construct Only
“channel” property“channel” gchar *
Channel the snap is currently tracking.
Flags: Read / Write / Construct Only
Default value: NULL
“confinement” property“confinement” SnapdConfinement
Confinement requested by the snap.
Flags: Read / Write / Construct Only
Default value: SNAPD_CONFINEMENT_UNKNOWN
“description” property“description” gchar *
Description of the snap.
Flags: Read / Write / Construct Only
Default value: NULL
“developer” property“developer” gchar *
Developer who created the snap.
Flags: Read / Write / Construct Only
Default value: NULL
“devmode” property“devmode” gboolean
TRUE if the snap is currently installed in devmode.
Flags: Read / Write / Construct Only
Default value: FALSE
“download-size” property“download-size” gint64
Download size in bytes.
Flags: Read / Write / Construct Only
Default value: 0
“icon” property“icon” gchar *
URL to the snap icon.
Flags: Read / Write / Construct Only
Default value: NULL
“id” property“id” gchar *
Unique ID for this snap.
Flags: Read / Write / Construct Only
Default value: NULL
“install-date” property“install-date” GDateTime *
Date this snap was installed.
Flags: Read / Write / Construct Only
“installed-size” property“installed-size” gint64
Installed size in bytes.
Flags: Read / Write / Construct Only
Default value: 0
“name” property“name” gchar *
The snap name.
Flags: Read / Write / Construct Only
Default value: NULL
“prices” property“prices” GPtrArray *
Prices this snap can be purchased for.
Flags: Read / Write / Construct Only
“private” property“private” gboolean
TRUE if this snap is only available to its author.
Flags: Read / Write / Construct Only
Default value: FALSE
“revision” property“revision” gchar *
Revision of this snap.
Flags: Read / Write / Construct Only
Default value: NULL
“snap-type” property“snap-type” SnapdSnapType
Snap type.
Flags: Read / Write / Construct Only
Default value: SNAPD_SNAP_TYPE_UNKNOWN
“status” property“status” SnapdSnapStatus
State of this snap.
Flags: Read / Write / Construct Only
Default value: SNAPD_SNAP_STATUS_UNKNOWN
“summary” property“summary” gchar *
One line description.
Flags: Read / Write / Construct Only
Default value: NULL
“trymode” property“trymode” gboolean
TRUE if this snap is installed in try mode.
Flags: Read / Write / Construct Only
Default value: FALSE
“version” property“version” gchar *
Snap version.
Flags: Read / Write / Construct Only
Default value: NULL