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 { 00107 QofIdType choice_type; 00109 QofIdType type; 00112 GUID *ref_guid; 00113 const QofParam *param; 00115 const GUID *ent_guid; 00116 } QofEntityReference; 00117 00125 void 00126 qof_session_update_reference_list (QofSession * session, 00127 QofEntityReference * reference); 00128 00137 #define ENTITYREFERENCE "QofEntityReference" 00138 00146 #define PARTIAL_QOFBOOK "PartialQofBook" 00147 00170 void qof_book_set_references (QofBook * book); 00171 00206 QofEntityReference * 00207 qof_entity_get_reference_from (QofEntity * ent, 00208 const QofParam * param); 00209 00212 #endif /* _QOFREFERENCE_H */