00001 /********************************************************************\ 00002 * qofquery-deserial.h -- Convert Qof-Query XML to QofQuery * 00003 * Copyright (C) 2004 Linas Vepstas <linas@linas.org> * 00004 * * 00005 * This program is free software; you can redistribute it and/or * 00006 * modify it under the terms of the GNU General Public License as * 00007 * published by the Free Software Foundation; either version 2 of * 00008 * the License, or (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License* 00016 * along with this program; if not, contact: * 00017 * * 00018 * Free Software Foundation Voice: +1-617-542-5942 * 00019 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 * 00020 * Boston, MA 02110-1301, USA gnu@gnu.org * 00021 * * 00022 \********************************************************************/ 00023 /* 00024 qofquery-deserial.h 00025 Convert Qof-Query XML to QofQuery 00026 author Copyright (C) 2004 Linas Vepstas <linas@linas.org> 00027 */ 00028 00029 #ifndef QOF_QUERY_DESERIAL_H 00030 #define QOF_QUERY_DESERIAL_H 00031 00032 #include "qofquery.h" 00033 #include <libxml/tree.h> 00034 00035 /* 00036 Qof Queries can be converted to and from XML so that they 00037 can be sent from here to there. This file implements the 00038 routine needed to convert the XML back into a C struct. 00039 00040 Unfinished. XXX Why is this easier than reading a text/sql 00041 file? 00042 00043 NOTE: Development of this idea has ceased and this file is 00044 no longer included in the QOF library. It remains in CVS for now. 00045 00046 */ 00047 /* Given an XML tree, reconstruct and return the equivalent query. */ 00048 QofQuery *qof_query_from_xml (xmlNodePtr); 00049 00050 #endif /* QOF_QUERY_DESERIAL_H */