QOF  0.8.7
qofreference.h
Go to the documentation of this file.
1 /***************************************************************************
2  * qofreference.h
3  *
4  * Mon Feb 13 21:07:06 2006
5  * Copyright 2006 Neil Williams
6  * linux@codehelp.co.uk
7  ****************************************************************************/
8 /*
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22  */
23 
24 #ifndef _QOFREFERENCE_H
25 #define _QOFREFERENCE_H
26 
70 #include "qof.h"
71 
105 typedef struct qof_entity_reference
106 {
113  const QofParam *param;
115  const GUID *ent_guid;
117 
125 void
127  QofEntityReference * reference);
128 
137 #define ENTITYREFERENCE "QofEntityReference"
138 
146 #define PARTIAL_QOFBOOK "PartialQofBook"
147 
170 void qof_book_set_references (QofBook * book);
171 
208  const QofParam * param);
209 
212 #endif /* _QOFREFERENCE_H */
const GUID * ent_guid
Definition: qofreference.h:115
const gchar * QofIdType
Definition: qofid.h:81
void qof_book_set_references(QofBook *book)
Read QofEntityReference data for this book and set values.
Definition: qofreference.c:177
struct qof_entity_reference QofEntityReference
External references in a partial QofBook.
QofEntityReference * qof_entity_get_reference_from(QofEntity *ent, const QofParam *param)
Get a reference from this entity to another entity.
Definition: qofreference.c:167
const QofParam * param
Definition: qofreference.h:113
Definition: guid.h:53
External references in a partial QofBook.
Definition: qofreference.h:105
void qof_session_update_reference_list(QofSession *session, QofEntityReference *reference)
Adds a new reference to the partial book data hash.
Definition: qofsession.c:234