Snapd – 2
Description: Reference for Snapd-2

### Namespace

# Snapd – 2

The Snapd-GLib library

Version | 1.72
Authors | Unknown authors
License | LGPL-2, LGPL-3
Website |
Source |

#### Build

C headers | `snapd-glib/snapd-glib.h`
pkg-config files | `snapd-glib`

#### Dependencies

#### Additional documentation

- Classes Hierarchy

#### Classes

Alias | `SnapdAlias` contains alias information for a Snap. since: 1.8
App | `SnapdApp` contains information about an app in a Snap. since: 1.0
Assertion | `SnapdAssertion` contains information about a Snap assertion. since: 1.0
AuthData | `SnapdAuthData` contains authorization data used to communicate with snapd. since: 1.0
AutorefreshChangeData | `SnapdAutoRefreshChangeData` contains the data from the ‘data’ field of a `SnapdChange` of kind ‘auto-refresh’. since: 1.65
Category | `SnapdCategory` is an opaque data structure and can only be accessed using the provided functions. since: 1.64
CategoryDetails | `SnapdCategoryDetails` is an opaque data structure and can only be accessed using the provided functions. since: 1.64
Change | `SnapdChange` contains information on a current Snap transaction. since: 1.5
ChangeData | A `SnapdChangeData` is the base class for the `data` field from a `SnapdChange`. since: 1.65
Channel | `SnapdChannel` is an opaque data structure and can only be accessed using the provided functions. since: 1.22
Client | `SnapdClient` contains connection state with snapd. since: 1.0
Connection | `SnapdConnection` contains the state of Snap a interface connection. since: 1.0
Icon | `SnapdIcon` contains icon data. since: 1.0
Interface | `SnapdInterface` contains information about a Snap interface. since: 1.48
Link | `SnapdLink` contains link information. since: 1.69
Log | `SnapdLog` is an opaque data structure and can only be accessed using the provided functions. since: 1.64
Maintenance | `SnapdMaintenance` contains maintenance information. since: 1.45
MarkdownNode | `SnapdMarkdownNode` is an opaque data structure and can only be accessed using the provided functions. since: 1.48
MarkdownParser | `SnapdMarkdownParser` is an opaque data structure and can only be accessed using the provided functions. since: 1.48
Media | `SnapdMedia` contains media information. since: 1.45
Notice | `SnapdNotice` contains information on a notification element. since: 1.65
NoticesMonitor | `SnapdNoticesMonitor` allows to receive in real time events from snapd, like status changes in an ongoing refresh, inhibited refreshes due to the snap being active, or inhibited launches due to an ongoing refresh. since: 1.66
Plug | `SnapdPlug` contains information about a Snap plug. since: 1.0
PlugRef | `SnapdPlugRef` contains the state of Snap a interface plug_ref. since: 1.0
Price | `SnapdPrice` contains pricing information. since: 1.0
Screenshot | `SnapdScreenshot` contains screenshot information. since: 1.0
Slot | `SnapdSlot` contains information about a Snap slot. since: 1.0
SlotRef | `SnapdSlotRef` contains the state of Snap a interface slot_ref. since: 1.0
Snap | `SnapdSnap` contains Snap metadata. since: 1.0
SystemInformation | `SnapdSystemInformation` contains information about the system snapd is running on. since: 1.0
Task | `SnapdTask` contains progress information for a task in a Snap transaction. since: 1.0
TaskData | `SnapdTaskData` contains extra information for a task in a Snap transaction. since: 1.66
UserInformation | `SnapdUserInformation` contains information about a user account on the system snapd is running on. since: 1.3

#### Enumerations

AliasStatus | Status of an alias. since: 1.8
ChangeFilter | Filter to apply to changes. since: 1.29
Confinement | Confinement used by a snap. since: 1.0
DaemonType | Type of daemon. since: 1.9
MaintenanceKind | Type of snap. since: 1.45
MarkdownNodeType | Type of markdown node. since: 1.48
MarkdownVersion | Version of markdown to parse. Picking a version will ensure only nodes of the expected type are decoded. since: 1.48
NoticeType |
PublisherValidation | State of validation for a publisher. since: 1.42
SnapStatus | The current state of a snap. since: 1.0
SnapType | Type of snap. since: 1.0
SystemConfinement | Confinement used by a snap. since: 1.15
ThemeStatus | The status of a snap-packaged desktop theme. since: 1.60

#### Bitfields

CreateUserFlags | Flag to control when a user accounts is created. since: 1.3
FindFlags | Flag to change how a find is performed. since: 1.0
GetAppsFlags | Flag to change which apps are returned. since: 1.25
GetConnectionsFlags | Flag to change how connections are returned. since: 1.49
GetInterfacesFlags | Flags to control how interface information is returned. since: 1.48
GetSnapsFlags | Flag to change which snaps are returned. since: 1.42
InstallFlags | Flags to control install options. since: 1.12
RemoveFlags | Flags to control remove options. since: 1.50

#### Error Domains

Error | Error codes returned by snapd operations. since: 1.0

#### Callbacks

LogCallback | Signature for callback function used in snapd_client_follow_logs_sync(). since: 1.64
ProgressCallback | Signature for callback function used in snapd_client_connect_interface_sync(), snapd_client_disconnect_interface_async(), snapd_client_install2_sync(), snapd_client_refresh_sync(), snapd_client_remove2_sync(), `snapd_client_enable_sync()` and snapd_client_disable_sync(). since: 1.0

#### Functions

login_async | Asynchronously get authorization to install/remove snaps. See `snapd_login_sync()` for more information. deprecated: 1.34 since: 1.0
login_finish | Complete login started with snapd_login_async(). See `snapd_login_sync()` for more information. deprecated: 1.34 since: 1.0
login_sync | This call used to contact a D-Bus service to perform snapd authentication using Polkit. This now just creates a `SnapdClient` and does the call directly. deprecated: 1.34 since: 1.0