| Top |
| GPtrArray * | apps | Read / Write / Construct Only |
| char * | base | Read / Write / Construct Only |
| char * | broken | Read / Write / Construct Only |
| GPtrArray * | categories | Read / Write / Construct Only |
| char * | channel | Read / Write / Construct Only |
| GPtrArray * | channels | Read / Write / Construct Only |
| GStrv | common-ids | Read / Write / Construct Only |
| SnapdConfinement | confinement | Read / Write / Construct Only |
| char * | contact | Read / Write / Construct Only |
| char * | description | Read / Write / Construct Only |
| char * | developer | Read / Write / Construct Only |
| gboolean | devmode | Read / Write / Construct Only |
| gint64 | download-size | Read / Write / Construct Only |
| GDateTime * | hold | Read / Write / Construct Only |
| char * | icon | Read / Write / Construct Only |
| char * | id | Read / Write / Construct Only |
| GDateTime * | install-date | Read / Write / Construct Only |
| gint64 | installed-size | Read / Write / Construct Only |
| gboolean | jailmode | Read / Write / Construct Only |
| char * | license | Read / Write / Construct Only |
| GPtrArray * | media | Read / Write / Construct Only |
| char * | mounted-from | Read / Write / Construct Only |
| char * | name | Read / Write / Construct Only |
| GPtrArray * | prices | Read / Write / Construct Only |
| gboolean | private | Read / Write / Construct Only |
| GDateTime * | proceed-time | Read / Write / Construct Only |
| char * | publisher-display-name | Read / Write / Construct Only |
| char * | publisher-id | Read / Write / Construct Only |
| char * | publisher-username | Read / Write / Construct Only |
| SnapdPublisherValidation | publisher-validation | Read / Write / Construct Only |
| char * | revision | Read / Write / Construct Only |
| GPtrArray * | screenshots | Read / Write / Construct Only |
| SnapdSnapType | snap-type | Read / Write / Construct Only |
| SnapdSnapStatus | status | Read / Write / Construct Only |
| char * | store-url | Read / Write / Construct Only |
| char * | summary | Read / Write / Construct Only |
| char * | title | Read / Write / Construct Only |
| char * | tracking-channel | Read / Write / Construct Only |
| GStrv | tracks | Read / Write / Construct Only |
| gboolean | trymode | Read / Write / Construct Only |
| char * | version | Read / Write / Construct Only |
| char * | website | Read / Write / Construct Only |
| enum | SnapdConfinement |
| enum | SnapdSnapType |
| enum | SnapdSnapStatus |
| enum | SnapdPublisherValidation |
| SnapdSnap |
GEnum ├── SnapdConfinement ├── SnapdPublisherValidation ├── SnapdSnapStatus ╰── SnapdSnapType GObject ╰── SnapdSnap
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.
Since: 1.0
const gchar *
snapd_snap_get_base (SnapdSnap *snap);
Get the base snap this snap uses.
Since: 1.45
const gchar *
snapd_snap_get_broken (SnapdSnap *snap);
Get the reason this snap is broken.
Since: 1.25
GPtrArray *
snapd_snap_get_categories (SnapdSnap *snap);
Gets the categories this snap belongs to.
Since: 1.64
const gchar *
snapd_snap_get_channel (SnapdSnap *snap);
Get the channel this snap is from, e.g. "stable".
Since: 1.0
GPtrArray *
snapd_snap_get_channels (SnapdSnap *snap);
Gets the available channels for this snap.
Since: 1.22
SnapdChannel * snapd_snap_match_channel (SnapdSnap *snap,const gchar *name);
Finds the available channel that best matches the given name.
If none matches NULL is returned.
Since: 1.22
GStrv
snapd_snap_get_common_ids (SnapdSnap *snap);
Get common IDs associated with this snap.
Since: 1.41
SnapdConfinement
snapd_snap_get_confinement (SnapdSnap *snap);
Get the confinement this snap is using, e.g. SNAPD_CONFINEMENT_STRICT.
Since: 1.0
const gchar *
snapd_snap_get_contact (SnapdSnap *snap);
Get the means of contacting the snap developer, e.g. "mailto:developerexample.com
".
Since: 1.13
const gchar *
snapd_snap_get_description (SnapdSnap *snap);
Get a multi-line description of this snap. The description is formatted using a subset of Markdown. To parse this use a SnapdMarkdownParser.
Since: 1.0
const gchar *
snapd_snap_get_developer (SnapdSnap *snap);
snapd_snap_get_developer has been deprecated since version 1.42 and should not be used in newly-written code.
Get the developer who created this snap.
Since: 1.0
gboolean
snapd_snap_get_devmode (SnapdSnap *snap);
Get if this snap is running in developer mode.
Since: 1.0
gint64
snapd_snap_get_download_size (SnapdSnap *snap);
Get the download size of this snap or 0 if unknown.
Since: 1.0
GDateTime *
snapd_snap_get_hold (SnapdSnap *snap);
Get the date this snap will re-enable automatic refreshing or NULL if no hold is present.
Since: 1.64
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.
Since: 1.0
const gchar *
snapd_snap_get_id (SnapdSnap *snap);
Gets the unique ID for this snap.
Since: 1.0
GDateTime *
snapd_snap_get_install_date (SnapdSnap *snap);
Get the date this snap was installed or NULL if unknown.
Since: 1.0
gint64
snapd_snap_get_installed_size (SnapdSnap *snap);
Get the installed size of this snap or 0 if unknown.
Since: 1.0
gboolean
snapd_snap_get_jailmode (SnapdSnap *snap);
Get if this snap is running in enforced confinement (jail) mode.
Since: 1.8
const gchar *
snapd_snap_get_license (SnapdSnap *snap);
Gets the SPDX license expression for this snap, e.g. "GPL-3.0+".
Since: 1.19
GPtrArray *
snapd_snap_get_media (SnapdSnap *snap);
Get media that is associated with this snap.
Since: 1.45
const gchar *
snapd_snap_get_mounted_from (SnapdSnap *snap);
Gets the path this snap is mounted from, which is a .snap file for installed snaps and a directory for snaps in try mode.
Since: 1.45
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.
Since: 1.0
GPtrArray *
snapd_snap_get_prices (SnapdSnap *snap);
Get the prices that this snap can be purchased at.
Since: 1.0
gboolean
snapd_snap_get_private (SnapdSnap *snap);
Get if this snap is only available to the developer.
Since: 1.0
const gchar *
snapd_snap_get_publisher_display_name (SnapdSnap *snap);
Get the display name of the publisher who created this snap.
Since: 1.42
const gchar *
snapd_snap_get_publisher_id (SnapdSnap *snap);
Get the ID of the publisher who created this snap.
Since: 1.42
const gchar *
snapd_snap_get_publisher_username (SnapdSnap *snap);
Get the username of the publisher who created this snap.
Since: 1.42
SnapdPublisherValidation
snapd_snap_get_publisher_validation (SnapdSnap *snap);
Get the validation for the snap publisher, e.g. SNAPD_PUBLISHER_VALIDATION_VERIFIED
Since: 1.42
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().
Since: 1.0
GPtrArray *
snapd_snap_get_screenshots (SnapdSnap *snap);
snapd_snap_get_screenshots has been deprecated since version 1.45 and should not be used in newly-written code.
Get the screenshots that are available for this snap.
Since: 1.0
SnapdSnapType
snapd_snap_get_snap_type (SnapdSnap *snap);
Get the type of snap, e.g. SNAPD_SNAP_TYPE_APP
Since: 1.0
SnapdSnapStatus
snapd_snap_get_status (SnapdSnap *snap);
Get the current status of this snap, e.g. SNAPD_SNAP_STATUS_INSTALLED.
Since: 1.0
const gchar *
snapd_snap_get_store_url (SnapdSnap *snap);
Get a URL to the web snap store, e.g. "https://snapcraft.io/example"
Since: 1.60
const gchar *
snapd_snap_get_summary (SnapdSnap *snap);
Get a single line summary for this snap, e.g. "Best app ever!".
Since: 1.0
const gchar *
snapd_snap_get_title (SnapdSnap *snap);
Get the title for this snap. If not available use the snap name instead.
Since: 1.14
const gchar *
snapd_snap_get_tracking_channel (SnapdSnap *snap);
Get the channel that updates will be installed from, e.g. "stable".
Since: 1.7
GStrv
snapd_snap_get_tracks (SnapdSnap *snap);
Get the tracks that are available.
Since: 1.22
gboolean
snapd_snap_get_trymode (SnapdSnap *snap);
Get if this snap is running in try mode (installed locally and able to be directly modified).
Since: 1.0
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().
Since: 1.0
Type of snap.
|
the type of snap is unknown. |
||
|
the snap is an application. |
||
|
the snap is a kernel. |
||
|
the snapd is a gadget. |
||
|
the snap is an operating system. |
||
|
the snap is a core snap. |
||
|
the snap is a base snap. |
||
|
the snap is the snap daemon. |
Since: 1.0
The current state of a snap.
|
the snap state is unknown. |
||
|
the snap is available for installation. |
||
|
the snap is available for purchase. |
||
|
the snap is installed but not active. |
||
|
the snap is installed and active. |
Since: 1.0
State of validation for a publisher.
|
the validation state of the publisher is unknown. |
||
|
the publisher has not proven their identity. |
||
|
the publisher is a star developer. |
||
|
the publisher has had their identity verified. |
Since: 1.42
“apps” property “apps” GPtrArray *
Apps this snap contains.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
“base” property “base” char *
Base snap this snap uses.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: NULL
“broken” property “broken” char *
Error string if snap is broken.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: NULL
“categories” property “categories” GPtrArray *
Categories this snap belongs to.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
“channel” property “channel” char *
Channel the snap is from.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: NULL
“channels” property “channels” GPtrArray *
Channels this snap is available on.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
“common-ids” property “common-ids” GStrv
Common IDs.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
“confinement” property“confinement” SnapdConfinement
Confinement requested by the snap.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: SNAPD_CONFINEMENT_UNKNOWN
“contact” property “contact” char *
Method of contacting developer.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: NULL
“description” property “description” char *
Description of the snap.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: NULL
“developer” property “developer” char *
Developer who created the snap.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: NULL
“devmode” property “devmode” gboolean
TRUE if the snap is currently installed in devmode.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: FALSE
“download-size” property “download-size” gint64
Download size in bytes.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: 0
“hold” property “hold” GDateTime *
Date this snap will re-enable automatic refreshing.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
“icon” property “icon” char *
URL to the snap icon.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: NULL
“id” property “id” char *
Unique ID for this snap.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: NULL
“install-date” property “install-date” GDateTime *
Date this snap was installed.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
“installed-size” property “installed-size” gint64
Installed size in bytes.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: 0
“jailmode” property “jailmode” gboolean
TRUE if the snap is currently installed in jailmode.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: FALSE
“license” property “license” char *
The snap license as an SPDX expression.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: NULL
“media” property “media” GPtrArray *
Media associated with this snap.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
“mounted-from” property “mounted-from” char *
Path snap is mounted from.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: NULL
“name” property “name” char *
The snap name.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: NULL
“prices” property “prices” GPtrArray *
Prices this snap can be purchased for.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
“private” property “private” gboolean
TRUE if this snap is only available to its author.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: FALSE
“proceed-time” property “proceed-time” GDateTime *
Describes time after which a refresh is forced for a running snap in the next auto-refresh.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
“publisher-display-name” property “publisher-display-name” char *
Display name for snap publisher.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: NULL
“publisher-id” property “publisher-id” char *
ID for snap publisher.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: NULL
“publisher-username” property “publisher-username” char *
Username for snap publisher.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: NULL
“publisher-validation” property“publisher-validation” SnapdPublisherValidation
Validation for snap publisher.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: SNAPD_PUBLISHER_VALIDATION_UNKNOWN
“revision” property “revision” char *
Revision of this snap.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: NULL
“screenshots” property “screenshots” GPtrArray *
Screenshots of this snap.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
“snap-type” property“snap-type” SnapdSnapType
Snap type.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: SNAPD_SNAP_TYPE_UNKNOWN
“status” property“status” SnapdSnapStatus
State of this snap.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: SNAPD_SNAP_STATUS_UNKNOWN
“store-url” property “store-url” char *
Web store URL.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: NULL
“summary” property “summary” char *
One line description.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: NULL
“title” property “title” char *
The snap title.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: NULL
“tracking-channel” property “tracking-channel” char *
Channel the snap is currently tracking.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: NULL
“tracks” property “tracks” GStrv
Track names.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
“trymode” property “trymode” gboolean
TRUE if this snap is installed in try mode.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: FALSE
“version” property “version” char *
Snap version.
Owner: SnapdSnap
Flags: Read / Write / Construct Only
Default value: NULL