File: snapd-system-information.h

package info (click to toggle)
snapd-glib 1.70-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,452 kB
  • sloc: ansic: 30,379; cpp: 15,591; makefile: 62; sh: 31
file content (101 lines) | stat: -rw-r--r-- 3,326 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/*
 * Copyright (C) 2016 Canonical Ltd.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2 or version 3 of the License.
 * See http://www.gnu.org/copyleft/lgpl.html the full text of the license.
 */

#ifndef __SNAPD_SYSTEM_INFORMATION_H__
#define __SNAPD_SYSTEM_INFORMATION_H__

#if !defined(__SNAPD_GLIB_INSIDE__) && !defined(SNAPD_COMPILATION)
#error "Only <snapd-glib/snapd-glib.h> can be included directly."
#endif

#include <glib-object.h>

G_BEGIN_DECLS

#define SNAPD_TYPE_SYSTEM_INFORMATION (snapd_system_information_get_type())

G_DECLARE_FINAL_TYPE(SnapdSystemInformation, snapd_system_information, SNAPD,
                     SYSTEM_INFORMATION, GObject)

/**
 * SnapdSystemConfinement:
 * @SNAPD_SYSTEM_CONFINEMENT_UNKNOWN: the confinement of the system is unknown.
 * @SNAPD_SYSTEM_CONFINEMENT_STRICT: the system supports strict confinement.
 * @SNAPD_SYSTEM_CONFINEMENT_PARTIAL: the system supports partial confinement.
 *
 * Confinement used by a snap.
 *
 * Since: 1.15
 */
typedef enum {
  SNAPD_SYSTEM_CONFINEMENT_UNKNOWN,
  SNAPD_SYSTEM_CONFINEMENT_STRICT,
  SNAPD_SYSTEM_CONFINEMENT_PARTIAL
} SnapdSystemConfinement;

const gchar *snapd_system_information_get_architecture(
    SnapdSystemInformation *system_information);

const gchar *snapd_system_information_get_binaries_directory(
    SnapdSystemInformation *system_information);

const gchar *snapd_system_information_get_build_id(
    SnapdSystemInformation *system_information);

SnapdSystemConfinement snapd_system_information_get_confinement(
    SnapdSystemInformation *system_information);

const gchar *snapd_system_information_get_kernel_version(
    SnapdSystemInformation *system_information);

gboolean snapd_system_information_get_managed(
    SnapdSystemInformation *system_information);

const gchar *snapd_system_information_get_mount_directory(
    SnapdSystemInformation *system_information);

gboolean snapd_system_information_get_on_classic(
    SnapdSystemInformation *system_information);

const gchar *
snapd_system_information_get_os_id(SnapdSystemInformation *system_information);

const gchar *snapd_system_information_get_os_version(
    SnapdSystemInformation *system_information);

GDateTime *snapd_system_information_get_refresh_hold(
    SnapdSystemInformation *system_information);

GDateTime *snapd_system_information_get_refresh_last(
    SnapdSystemInformation *system_information);

GDateTime *snapd_system_information_get_refresh_next(
    SnapdSystemInformation *system_information);

const gchar *snapd_system_information_get_refresh_schedule(
    SnapdSystemInformation *system_information);

const gchar *snapd_system_information_get_refresh_timer(
    SnapdSystemInformation *system_information);

GHashTable *snapd_system_information_get_sandbox_features(
    SnapdSystemInformation *system_information);

const gchar *
snapd_system_information_get_series(SnapdSystemInformation *system_information);

const gchar *
snapd_system_information_get_store(SnapdSystemInformation *system_information);

const gchar *snapd_system_information_get_version(
    SnapdSystemInformation *system_information);

G_END_DECLS

#endif /* __SNAPD_SYSTEM_INFORMATION_H__ */