1 /* GIO - GLib Input, Output and Streaming Library
2 *
3 * Copyright 2022 Canonical Ltd
4 *
5 * SPDX-License-Identifier: LGPL-2.1-or-later
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General
18 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef __G_SANDBOX_H__
22 #define __G_SANDBOX_H__
23
24 #include <gio.h>
25
26 G_BEGIN_DECLS
27
28 /*
29 * GSandboxType:
30 * @G_SANDBOX_TYPE_UNKNOWN: process is running inside an unknown or no sandbox.
31 * @G_SANDBOX_TYPE_FLATPAK: process is running inside a flatpak sandbox.
32 * @G_SANDBOX_TYPE_SNAP: process is running inside a snap sandbox.
33 *
34 * The type of sandbox that processes can be running inside.
35 */
36 typedef enum
37 {
38 G_SANDBOX_TYPE_UNKNOWN,
39 G_SANDBOX_TYPE_FLATPAK,
40 G_SANDBOX_TYPE_SNAP
41 } GSandboxType;
42
43 GSandboxType glib_get_sandbox_type (void);
44
45 G_END_DECLS
46
47 #endif