qofreference.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *            qofreference.h
00003  *
00004  *  Mon Feb 13 21:07:06 2006
00005  *  Copyright  2006  Neil Williams
00006  *  linux@codehelp.co.uk
00007  ****************************************************************************/
00008 /*
00009  *  This program is free software; you can redistribute it and/or modify
00010  *  it under the terms of the GNU General Public License as published by
00011  *  the Free Software Foundation; either version 2 of the License, or
00012  *  (at your option) any later version.
00013  *
00014  *  This program is distributed in the hope that it will be useful,
00015  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  *  GNU General Public License for more details.
00018  *
00019  *  You should have received a copy of the GNU General Public License
00020  *  along with this program; if not, write to the Free Software
00021  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00022  */
00023  
00024 #ifndef _QOFREFERENCE_H
00025 #define _QOFREFERENCE_H
00026 
00070 #include "qof.h"
00071 
00105 typedef struct qof_entity_reference {
00106         QofIdType       choice_type;
00108         QofIdType       type;       
00111         GUID            *ref_guid;  
00112         const QofParam  *param;      
00114         const GUID      *ent_guid;   
00115 }QofEntityReference;
00116 
00124 void
00125 qof_session_update_reference_list(QofSession *session, QofEntityReference *reference);
00126 
00135 #define ENTITYREFERENCE "QofEntityReference"
00136 
00144 #define PARTIAL_QOFBOOK "PartialQofBook"
00145 
00168 void qof_book_set_references(QofBook *book);
00169 
00204 QofEntityReference*
00205 qof_entity_get_reference_from(QofEntity *ent, const QofParam *param);
00206 
00209 #endif /* _QOFREFERENCE_H */

Generated on Fri May 12 17:57:20 2006 for QOF by  doxygen 1.4.4