QOF: qofreference.h Source File

QOF 0.7.5

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 {
107 QofIdType choice_type;
109 QofIdType type;
112 GUID *ref_guid;
113 const QofParam *param;
115 const GUID *ent_guid;
116 } QofEntityReference;
117
125 void
126 qof_session_update_reference_list (QofSession * session,
127 QofEntityReference * reference);
128
137 #define ENTITYREFERENCE "QofEntityReference"
138
146 #define PARTIAL_QOFBOOK "PartialQofBook"
147
170 void qof_book_set_references (QofBook * book);
171
206 QofEntityReference *
207 qof_entity_get_reference_from (QofEntity * ent,
208 const QofParam * param);
209
212 #endif /* _QOFREFERENCE_H */
qof_entity_reference::ent_guid
const GUID * ent_guid
Definition: qofreference.h:115
qof_entity_reference::type
QofIdType type
Definition: qofreference.h:109
QofIdType
const gchar * QofIdType
Definition: qofid.h:81
_QofParam
Definition: qofclass.h:195
_QofSession
Definition: qofsession-p.h:35
QofEntity_s
Definition: qofid.h:147
qof_entity_reference::ref_guid
GUID * ref_guid
Definition: qofreference.h:112
qof_entity_reference::choice_type
QofIdType choice_type
Definition: qofreference.h:107
qof_book_set_references
void qof_book_set_references(QofBook *book)
Read QofEntityReference data for this book and set values.
Definition: qofreference.c:177
QofEntityReference
struct qof_entity_reference QofEntityReference
External references in a partial QofBook.
qof_entity_get_reference_from
QofEntityReference * qof_entity_get_reference_from(QofEntity *ent, const QofParam *param)
Get a reference from this entity to another entity.
Definition: qofreference.c:167
qof_entity_reference::param
const QofParam * param
Definition: qofreference.h:113
_GUID
Definition: guid.h:53
qof_entity_reference
External references in a partial QofBook.
Definition: qofreference.h:105
_QofBook
Definition: qofbook-p.h:48
qof_session_update_reference_list
void qof_session_update_reference_list(QofSession *session, QofEntityReference *reference)
Adds a new reference to the partial book data hash.
Definition: qofsession.c:237