Top |
GPtrArray * | apps | Read / Write / Construct Only |
gchar * | base | Read / Write / Construct Only |
gchar * | broken | Read / Write / Construct Only |
gchar * | channel | Read / Write / Construct Only |
GPtrArray * | channels | Read / Write / Construct Only |
GStrv | common-ids | Read / Write / Construct Only |
SnapdConfinement | confinement | Read / Write / Construct Only |
gchar * | contact | 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 |
gboolean | jailmode | Read / Write / Construct Only |
gchar * | license | Read / Write / Construct Only |
GPtrArray * | media | Read / Write / Construct Only |
gchar * | mounted-from | Read / Write / Construct Only |
gchar * | name | Read / Write / Construct Only |
GPtrArray * | prices | Read / Write / Construct Only |
gboolean | private | Read / Write / Construct Only |
gchar * | publisher-display-name | Read / Write / Construct Only |
gchar * | publisher-id | Read / Write / Construct Only |
gchar * | publisher-username | Read / Write / Construct Only |
SnapdPublisherValidation | publisher-validation | Read / Write / Construct Only |
gchar * | revision | Read / Write / Construct Only |
GPtrArray * | screenshots | Read / Write / Construct Only |
SnapdSnapType | snap-type | Read / Write / Construct Only |
SnapdSnapStatus | status | Read / Write / Construct Only |
gchar * | summary | Read / Write / Construct Only |
gchar * | title | Read / Write / Construct Only |
gchar * | tracking-channel | Read / Write / Construct Only |
GStrv | tracks | Read / Write / Construct Only |
gboolean | trymode | Read / Write / Construct Only |
gchar * | version | 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
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
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_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
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
“apps”
property“apps” GPtrArray *
Apps this snap contains.
Flags: Read / Write / Construct Only
“base”
property“base” gchar *
Base snap this snap uses.
Flags: Read / Write / Construct Only
Default value: NULL
“broken”
property“broken” gchar *
Error string if snap is broken.
Flags: Read / Write / Construct Only
Default value: NULL
“channel”
property“channel” gchar *
Channel the snap is from.
Flags: Read / Write / Construct Only
Default value: NULL
“channels”
property“channels” GPtrArray *
Channels this snap is available on.
Flags: Read / Write / Construct Only
“confinement”
property“confinement” SnapdConfinement
Confinement requested by the snap.
Flags: Read / Write / Construct Only
Default value: SNAPD_CONFINEMENT_UNKNOWN
“contact”
property“contact” gchar *
Method of contacting developer.
Flags: Read / Write / Construct Only
Default value: NULL
“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
“jailmode”
property“jailmode” gboolean
TRUE if the snap is currently installed in jailmode.
Flags: Read / Write / Construct Only
Default value: FALSE
“license”
property“license” gchar *
The snap license as an SPDX expression.
Flags: Read / Write / Construct Only
Default value: NULL
“media”
property“media” GPtrArray *
Media associated with this snap.
Flags: Read / Write / Construct Only
“mounted-from”
property“mounted-from” gchar *
Path snap is mounted from.
Flags: Read / Write / Construct Only
Default value: NULL
“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
“publisher-display-name”
property“publisher-display-name” gchar *
Display name for snap publisher.
Flags: Read / Write / Construct Only
Default value: NULL
“publisher-id”
property“publisher-id” gchar *
ID for snap publisher.
Flags: Read / Write / Construct Only
Default value: NULL
“publisher-username”
property“publisher-username” gchar *
Username for snap publisher.
Flags: Read / Write / Construct Only
Default value: NULL
“publisher-validation”
property“publisher-validation” SnapdPublisherValidation
Validation for snap publisher.
Flags: Read / Write / Construct Only
Default value: SNAPD_PUBLISHER_VALIDATION_UNKNOWN
“revision”
property“revision” gchar *
Revision of this snap.
Flags: Read / Write / Construct Only
Default value: NULL
“screenshots”
property“screenshots” GPtrArray *
Screenshots of this snap.
Flags: Read / Write / Construct Only
“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
“title”
property“title” gchar *
The snap title.
Flags: Read / Write / Construct Only
Default value: NULL
“tracking-channel”
property“tracking-channel” gchar *
Channel the snap is currently tracking.
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