summaryrefslogtreecommitdiff
path: root/src/params.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-07-12 15:26:23 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-07-12 15:26:23 (GMT)
commitc9465acd65e197e48da8648eb8d1ef602d6772ed (patch)
treefbb5ceaaa683bd1beb0b66d5e5d212b927a9f6b0 /src/params.h
parent5f2cd35c377989e07b241870f89fdf87d851465d (diff)
Read and saved projects from and into XML files.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@91 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/params.h')
-rw-r--r--src/params.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/src/params.h b/src/params.h
new file mode 100644
index 0000000..25e2dcf
--- /dev/null
+++ b/src/params.h
@@ -0,0 +1,74 @@
+
+/* OpenIDA - Outil d'analyse de fichiers binaires
+ * params.h - prototypes pour les éléments de la configuration principale
+ *
+ * Copyright (C) 2009 Cyrille Bagard
+ *
+ * This file is part of OpenIDA.
+ *
+ * OpenIDA 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.
+ *
+ * OpenIDA 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 Foobar. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+#ifndef _PARAMS_H
+#define _PARAMS_H
+
+
+#include "configuration.h"
+
+
+#ifndef NULL
+# define NULL ((void *)0)
+#endif
+
+
+
+/* Eléments de la configuration principale */
+
+typedef enum _MainParamType
+{
+ MPT_RECENT_PROJECT_1, /* Projet récent numéro 1 */
+ MPT_RECENT_PROJECT_2, /* Projet récent numéro 2 */
+ MPT_RECENT_PROJECT_3, /* Projet récent numéro 3 */
+ MPT_RECENT_PROJECT_4, /* Projet récent numéro 4 */
+ MPT_RECENT_PROJECT_5, /* Projet récent numéro 5 */
+ MPT_RECENT_PROJECT_6, /* Projet récent numéro 6 */
+ MPT_RECENT_PROJECT_7, /* Projet récent numéro 7 */
+
+ MPT_COUNT
+
+} MainParamType;
+
+static config_param main_params[MPT_COUNT] = {
+
+ [MPT_RECENT_PROJECT_1] = { "/OpenIDA/Recents/Project1", NULL, NULL },
+ [MPT_RECENT_PROJECT_2] = { "/OpenIDA/Recents/Project2", NULL, NULL },
+ [MPT_RECENT_PROJECT_3] = { "/OpenIDA/Recents/Project3", NULL, NULL },
+ [MPT_RECENT_PROJECT_4] = { "/OpenIDA/Recents/Project4", NULL, NULL },
+ [MPT_RECENT_PROJECT_5] = { "/OpenIDA/Recents/Project5", NULL, NULL },
+ [MPT_RECENT_PROJECT_6] = { "/OpenIDA/Recents/Project6", NULL, NULL },
+ [MPT_RECENT_PROJECT_7] = { "/OpenIDA/Recents/Project7", NULL, NULL },
+
+};
+
+
+#define get_main_configuration() get_main_configuration(NULL)
+
+
+/* Fournit un lien vers la configuration principale. */
+configuration *_get_main_configuration(configuration *);
+
+
+
+#endif /* _PARAMS_H */