1 /* GIMP - The GNU Image Manipulation Program 2 * Copyright (C) 1995 Spencer Kimball and Peter Mattis 3 * 4 * gimpsessioninfo-aux.h 5 * Copyright (C) 2001-2007 Michael Natterer <mitch@gimp.org> 6 * 7 * This program is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * This program 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 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program. If not, see <https://www.gnu.org/licenses/>. 19 */ 20 21 #ifndef __GIMP_SESSION_INFO_AUX_H__ 22 #define __GIMP_SESSION_INFO_AUX_H__ 23 24 25 /** 26 * GimpSessionInfoAux: 27 * 28 * Contains arbitrary data in the session management system, used for 29 * example by dockables to manage dockable-specific data. 30 */ 31 struct _GimpSessionInfoAux 32 { 33 gchar *name; 34 gchar *value; 35 }; 36 37 38 GimpSessionInfoAux * 39 gimp_session_info_aux_new (const gchar *name, 40 const gchar *value); 41 void gimp_session_info_aux_free (GimpSessionInfoAux *aux); 42 43 GList * gimp_session_info_aux_new_from_props (GObject *object, 44 ...) G_GNUC_NULL_TERMINATED; 45 void gimp_session_info_aux_set_props (GObject *object, 46 GList *aux, 47 ...) G_GNUC_NULL_TERMINATED; 48 49 void gimp_session_info_aux_serialize (GimpConfigWriter *writer, 50 GList *aux_info); 51 GTokenType gimp_session_info_aux_deserialize (GScanner *scanner, 52 GList **aux_list); 53 54 55 #endif /* __GIMP_SESSION_INFO_AUX_H__ */ 56