/usr/include/vala-panel/settings-manager.h is in libvalapanel-dev 0.3.65-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | /*
* vala-panel
* Copyright (C) 2015-2017 Konstantin Pugin <ria.freelander@gmail.com>
*
* This program 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 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef SETTINGSMANAGER_H
#define SETTINGSMANAGER_H
#include "constants.h"
#include <gio/gio.h>
#include <glib.h>
#include <stdbool.h>
#define ROOT_NAME "profile"
G_BEGIN_DECLS
typedef struct
{
GSettingsBackend *backend;
GSettings *core_settings;
char *root_schema;
char *root_path;
GHashTable *all_units;
} ValaPanelCoreSettings;
typedef struct
{
GSettings *type_settings;
GSettings *default_settings;
GSettings *custom_settings;
char *schema_elem;
char *uuid;
} ValaPanelUnitSettings;
typedef enum {
TOPLEVEL = 0,
APPLET = 1,
} ValaPanelType;
#define vala_panel_core_settings_remove_unit_settings(s, n) \
vala_panel_core_settings_remove_unit_settings_full(s, n, false)
typedef ValaPanelUnitSettings *ValaPanelUnitSettingsPointer;
typedef ValaPanelCoreSettings *ValaPanelCoreSettingsPointer;
ValaPanelUnitSettings *vala_panel_unit_settings_new(ValaPanelCoreSettings *settings,
const char *name, const char *uuid,
bool is_toplevel);
void vala_panel_unit_settings_free(ValaPanelUnitSettings *settings);
bool vala_panel_unit_settings_is_toplevel(ValaPanelUnitSettings *settings);
GType vala_panel_unit_settings_get_type();
G_DEFINE_AUTO_CLEANUP_FREE_FUNC(ValaPanelUnitSettingsPointer, vala_panel_unit_settings_free, NULL);
ValaPanelCoreSettings *vala_panel_core_settings_new(const char *schema, const char *path,
GSettingsBackend *backend);
void vala_panel_core_settings_free(ValaPanelCoreSettings *settings);
ValaPanelUnitSettings *vala_panel_core_settings_add_unit_settings(ValaPanelCoreSettings *settings,
const char *name,
bool is_toplevel);
ValaPanelUnitSettings *vala_panel_core_settings_add_unit_settings_full(
ValaPanelCoreSettings *settings, const char *name, const char *uuid, bool is_toplevel);
void vala_panel_core_settings_remove_unit_settings_full(ValaPanelCoreSettings *settings,
const char *name, bool destroy);
ValaPanelUnitSettings *vala_panel_core_settings_get_by_uuid(ValaPanelCoreSettings *settings,
const char *uuid);
char *vala_panel_core_settings_get_uuid();
bool vala_panel_core_settings_init_unit_list(ValaPanelCoreSettings *settings);
GType vala_panel_core_settings_get_type();
G_DEFINE_AUTO_CLEANUP_FREE_FUNC(ValaPanelCoreSettingsPointer, vala_panel_core_settings_free, NULL);
G_END_DECLS
#endif // SETTINGSMANAGER_H
|