Allow elements out of context in GOM.
[gedcom-parse.git] / gom / source.h
1 /* Include file for the source object in the gedcom object model.
2    Copyright (C) 2002 The Genes Development Team
3    This file is part of the Gedcom parser library.
4    Contributed by Peter Verthez <Peter.Verthez@advalvas.be>, 2002.
5
6    The Gedcom parser library is free software; you can redistribute it
7    and/or modify it under the terms of the GNU Lesser General Public
8    License as published by the Free Software Foundation; either
9    version 2.1 of the License, or (at your option) any later version.
10
11    The Gedcom parser library is distributed in the hope that it will be
12    useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14    Lesser General Public License for more details.
15
16    You should have received a copy of the GNU Lesser General Public
17    License along with the Gedcom parser library; if not, write to the
18    Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19    02111-1307 USA.  */
20
21 /* $Id$ */
22 /* $Name$ */
23
24 #ifndef __SOURCE_H
25 #define __SOURCE_H
26
27 #include "gom.h"
28 #include "gom_internal.h"
29
30 void source_subscribe();
31 void sources_cleanup();
32 int write_sources(Gedcom_write_hndl hndl);
33
34 DECLARE_MAKEFUNC(source);
35 DECLARE_ADDFUNC2(source, source_event);
36 DECLARE_ADDFUNC2(source, source_description);
37 DECLARE_ADDFUNC2(source, multimedia_link);
38 DECLARE_ADDFUNC2(source, note_sub);
39 DECLARE_ADDFUNC2(source, user_ref_number);
40 DECLARE_ADDFUNC2(source, user_data);
41 DECLARE_ADDFUNC2_NOLIST(source, change_date);
42 DECLARE_ADDFUNC2_STR(source, record_id);
43
44 void source_add_note_to_data(Gom_ctxt ctxt, struct note_sub* note);
45 void source_add_note_to_repo(Gom_ctxt ctxt, struct note_sub* note);
46
47 #endif /* __SOURCE_H */