summaryrefslogtreecommitdiff
path: root/src/core/params.h
blob: 85f40847b27f6adc25ecbb5448650a8ec9ad1af3 (plain)
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

/* Chrysalide - Outil d'analyse de fichiers binaires
 * params.h - prototypes pour les éléments de la configuration principale
 *
 * Copyright (C) 2014-2017 Cyrille Bagard
 *
 *  This file is part of Chrysalide.
 *
 *  Chrysalide is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Chrysalide 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 General Public License
 *  along with Chrysalide.  If not, see <http://www.gnu.org/licenses/>.
 */


#ifndef _CORE_PARAMS_H
#define _CORE_PARAMS_H


#include "../glibext/configuration.h"



/**
 * Clefs de paramètres de configuration principale.
 */

#define MPK_AUTHOR_NAME         "cdb.default.author"
#define MPK_IDENTITY_CLIENT_C   "cdb.identity.client.country"
#define MPK_IDENTITY_CLIENT_ST  "cdb.identity.client.state"
#define MPK_IDENTITY_CLIENT_L   "cdb.identity.client.locality"
#define MPK_IDENTITY_CLIENT_O   "cdb.identity.client.organisation"
#define MPK_IDENTITY_CLIENT_OU  "cdb.identity.client.organisational_unit"
#define MPK_IDENTITY_CLIENT_CN  "cdb.identity.client.common_name"
#define MPK_IDENTITY_SERVER_C   "cdb.identity.server.country"
#define MPK_IDENTITY_SERVER_ST  "cdb.identity.server.state"
#define MPK_IDENTITY_SERVER_L   "cdb.identity.server.locality"
#define MPK_IDENTITY_SERVER_O   "cdb.identity.server.organisation"
#define MPK_IDENTITY_SERVER_OU  "cdb.identity.server.organisational_unit"
#define MPK_IDENTITY_SERVER_CN  "cdb.identity.server.common_name"
#define MPK_IDENTITY_VALIDITY   "cdb.identity.validity"
#define MPK_SERVER_BACKLOG      "cdb.network.server.backlog"
#define MPK_FORMAT_NO_NAME      "format.symbols.use_phy_instead_of_virt"
#define MPK_INTERNAL_THEME      "gui.editor.theme"
#define MPK_TITLE_BAR           "gui.editor.hide_titlebar"
#define MPK_LAST_PROJECT        "gui.editor.last_project"
#define MPK_SKIP_EXIT_MSG       "gui.editor.skip_exit_msg"
#define MPK_MAXIMIZED           "gui.editor.start_maximized"
#define MPK_ELLIPSIS_HEADER     "gui.editor.panels.ellipsis_header"
#define MPK_ELLIPSIS_TAB        "gui.editor.panels.ellipsis_tab"
#define MPK_WELCOME_STARTUP     "gui.editor.panels.welcome.show_at_startup"
#define MPK_WELCOME_CHECK       "gui.editor.panels.welcome.check_version"
#define MPK_LABEL_OFFSET        "gui.editor.views.label_offset"
#define MPK_SELECTION_LINE      "gui.editor.views.selection_line"
#define MPK_TOOLTIP_MAX_CALLS   "gui.editor.views.tooltip_max_calls"
#define MPK_TOOLTIP_MAX_STRINGS "gui.editor.views.tooltip_max_strings"
#define MPK_LINK_DEFAULT        "gui.editor.graph.link.default"
#define MPK_LINK_BRANCH_TRUE    "gui.editor.graph.link.branch_true"
#define MPK_LINK_BRANCH_FALSE   "gui.editor.graph.link.branch_false"
#define MPK_LINK_LOOP           "gui.editor.graph.link.loop"
#define MPK_KEYBINDINGS_EDIT    "gui.key_bindings.global.edit"
#define MPK_TMPDIR              "misc.tmpdir"
#define MPK_AUTO_SAVE           "project.autosave"



/* Procède au chargement de la configuration principale. */
bool load_main_config_parameters(void);

/* Procède au déchargement de la configuration principale. */
void unload_main_config_parameters(void);

#define set_main_configuration(cfg) _get_main_configuration(cfg)
#define get_main_configuration() _get_main_configuration(NULL)

/* Fournit un lien vers la configuration principale. */
GGenConfig *_get_main_configuration(GGenConfig *);



#endif  /* _CORE_PARAMS_H */