/* GDA Common Library * Copyright (C) 2001, The Free Software Foundation * * Authors: * Gerhard Dieringer * Rodrigo Moya * * This Library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this Library; see the file COPYING.LIB. If not, * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #if !defined(__gda_xml_list_item_h__) # define __gda_xml_list_item_h__ #include G_BEGIN_DECLS #define GDA_TYPE_XML_LIST_ITEM (gda_xml_list_item_get_type ()) #define GDA_XML_LIST_ITEM(obj) GTK_CHECK_CAST(obj, GDA_TYPE_XML_LIST_ITEM, GdaXmlListItem) #define GDA_XML_LIST_ITEM_CLASS(klass) GTK_CHECK_CLASS_CAST(klass, GDA_TYPE_XML_LIST_ITEM, GdaXmlListItemClass) #define GDA_IS_XML_LIST_ITEM(obj) GTK_CHECK_TYPE(obj, GDA_TYPE_XML_LIST_ITEM) #define GDA_IS_XML_LIST_ITEM_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass), GDA_TYPE_XML_LIST_ITEM)) typedef struct _GdaXmlListItem GdaXmlListItem; typedef struct _GdaXmlListItemClass GdaXmlListItemClass; typedef struct _GdaXmlListItemPrivate GdaXmlListItemPrivate; struct _GdaXmlListItem { GdaXmlItem item; GdaXmlListItemPrivate *priv; }; struct _GdaXmlListItemClass { GdaXmlItemClass parent_class; }; GtkType gda_xml_list_item_get_type (void); GdaXmlItem *gda_xml_list_item_new (const gchar * tag); void gda_xml_list_item_add (GdaXmlItem * item, GdaXmlItem * child); xmlNodePtr gda_xml_list_item_to_dom (GdaXmlItem * item, xmlNodePtr parent_node); GdaXmlItem *gda_xml_list_item_find_id (GdaXmlItem * item, const gchar * id); G_END_DECLS #endif