SnapdApp

SnapdApp — Application metadata

Functions

Properties

GStrv aliases Read / Write / Construct Only
SnapdDaemonType daemon-type Read / Write / Construct Only
gchar * desktop-file Read / Write / Construct Only
gchar * name Read / Write / Construct Only

Types and Values

Object Hierarchy

    GEnum
    ╰── SnapdDaemonType
    GObject
    ╰── SnapdApp

Includes

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

Description

A SnapdApp contains information about an application that snapd provides. Apps are retrieved using snapd_snap_get_apps().

Functions

snapd_app_get_name ()

const gchar *
snapd_app_get_name (SnapdApp *app);

Get the name of this app.

Parameters

app

a SnapdApp.

 

Returns

a name.

Since: 1.0


snapd_app_get_aliases ()

gchar **
snapd_app_get_aliases (SnapdApp *app);

Get the aliases for this app.

Parameters

app

a SnapdApp.

 

Returns

the alias names.

[transfer none][array zero-terminated=1]

Since: 1.7


snapd_app_get_daemon_type ()

SnapdDaemonType
snapd_app_get_daemon_type (SnapdApp *app);

Get the daemon type for this app.

Parameters

app

a SnapdApp.

 

Returns

the daemon type or NULL.

[allow-none]

Since: 1.9


snapd_app_get_desktop_file ()

const gchar *
snapd_app_get_desktop_file (SnapdApp *app);

Get the path to the desktop file for this app.

Parameters

app

a SnapdApp.

 

Returns

a path or NULL.

[allow-none]

Since: 1.14

Types and Values

enum SnapdDaemonType

Type of daemon.

Members

SNAPD_DAEMON_TYPE_NONE

Not a daemon

 

SNAPD_DAEMON_TYPE_UNKNOWN

Unknown daemon type

 

SNAPD_DAEMON_TYPE_SIMPLE

Simple daemon

 

SNAPD_DAEMON_TYPE_FORKING

Forking daemon

 

SNAPD_DAEMON_TYPE_ONESHOT

One-shot daemon

 

SNAPD_DAEMON_TYPE_DBUS

D-Bus daemon

 

SNAPD_DAEMON_TYPE_NOTIFY

Notify daemon

 

Since: 1.9


SnapdApp

typedef struct _SnapdApp SnapdApp;

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

Since: 1.0

Property Details

The “aliases” property

  “aliases”                  GStrv

App aliases.

Flags: Read / Write / Construct Only


The “daemon-type” property

  “daemon-type”              SnapdDaemonType

Daemon type.

Flags: Read / Write / Construct Only

Default value: SNAPD_DAEMON_TYPE_UNKNOWN


The “desktop-file” property

  “desktop-file”             gchar *

App desktop file path.

Flags: Read / Write / Construct Only

Default value: NULL


The “name” property

  “name”                     gchar *

App name.

Flags: Read / Write / Construct Only

Default value: NULL