1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4; coding: utf-8 -*- */ 2 /* preferences.h 3 * 4 * Copyright (C) 2010 Sébastien Granjoux 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation; either version 2 of the 9 * License, or (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public 17 * License along with this program; if not, write to the 18 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 * Boston, MA 02110-1301, USA. 20 */ 21 22 #ifndef _PREFERENCES_H_ 23 #define _PREFERENCES_H_ 24 25 #include <libanjuta/anjuta-preferences.h> 26 #include <libanjuta/anjuta-session.h> 27 #include <glib.h> 28 29 G_BEGIN_DECLS 30 31 typedef struct 32 { 33 gboolean enable; 34 gchar *path; 35 gchar *function; 36 } GdbPrettyPrinter; 37 38 GList *gdb_load_pretty_printers (AnjutaSession *session); 39 gboolean gdb_save_pretty_printers (AnjutaSession *session, GList *list); 40 41 void gdb_pretty_printer_free (GdbPrettyPrinter *printer); 42 43 void gdb_merge_preferences (AnjutaPreferences* prefs, GList **list); 44 void gdb_unmerge_preferences (AnjutaPreferences* prefs); 45 46 G_END_DECLS 47 48 #endif /* _PREFERENCES_H_ */ 49