This file is indexed.

/usr/include/qof/qofinstance-p.h is in libqof-dev 0.8.8-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/********************************************************************\
 * qofinstance-p.h -- private fields common to all object instances *
 *                                                                  *
 * This program is free software; you can redistribute it and/or    *
 * modify it under the terms of the GNU General Public License as   *
 * published by the Free Software Foundation; either version 2 of   *
 * the License, or (at your option) any later version.              *
 *                                                                  *
 * This program is distributed in the hope that it will be useful,  *
 * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
 * GNU General Public License for more details.                     *
 *                                                                  *
 * You should have received a copy of the GNU General Public License*
 * along with this program; if not, contact:                        *
 *                                                                  *
 * Free Software Foundation           Voice:  +1-617-542-5942       *
 * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
 * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
 *                                                                  *
\********************************************************************/
/*
 * Object instance holds many common fields that most
 * QofObjects use.
 * 
 * Copyright (C) 2003 Linas Vepstas <linas@linas.org>
 * Copyright 2008 Neil Williams <linux@codehelp.co.uk>
 */

#ifndef QOF_INSTANCE_P_H
#define QOF_INSTANCE_P_H
#include "config.h"
#include "qofinstance.h"
#include "qofclass.h"

struct QofInstance_s
{
	/** Globally unique id identifying this instance */
	QofEntity entity;

	/** The entity_table in which this instance is stored */
	QofBook *book;

	/** kvp_data is a key-value pair database for storing arbirtary
	 * information associated with this instance.  
	 * See src/engine/kvp_doc.txt for a list and description of the 
	 * important keys. */
	KvpFrame *kvp_data;

	/** Current QofParam being edited / committed 
	\since 0.7.1
	*/
	const QofParam * param;

	/**  Time of the last modification to this 
	instance.  Typically used to compare two versions of the
	same object, to see which is newer.  Reserved for SQL use, 
	to compare the version in local memory to the remote, 
	server version.
	\since 0.7.0
	*/
	QofTime *update_time;

	/*  Keep track of nesting level of begin/end edit calls */
	gint editlevel;

	/*  In process of being destroyed */
	gboolean do_free;

	/*  dirty/clean flag. If dirty, then this instance has been modified,
	 *  but has not yet been written out to storage (file/database)
	 */
	gboolean dirty;
};

/* reset the dirty flag */
void qof_instance_mark_clean (QofInstance *);

void qof_instance_set_slots (QofInstance *, KvpFrame *);

/*  Set the update time. Reserved for use by the SQL backend;
 *  used for comparing version in local memory to that in remote 
 *  server. The QofTime becomes the property of the instance.
 */
void
qof_instance_set_update_time (QofInstance * inst, QofTime * time);

#endif /* QOF_INSTANCE_P_H */