This file is indexed.

/usr/include/gnucash/gnc-basic-gobject.h is in gnucash-common 1:2.6.15-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
/********************************************************************\
 * gnc-basic-gobject.h                                              *
 *                                                                  *
 * 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, write to the Free Software      *
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.        *
\********************************************************************/


#ifndef GNC_BASIC_GOBJECT_H
#define GNC_BASIC_GOBJECT_H

/* A simple macro to define simple gobjects */

#define GNC_BASIC_GOBJECT_TYPE(type_struct,klass_struct,parent,klass_init,inst_init,get_type_fcn)	\
GType 										\
get_type_fcn (void)								\
{										\
  static GType type = 0;							\
										\
  if (type == 0) {								\
    GTypeInfo type_info = {							\
      sizeof (klass_struct),							\
      NULL,									\
      NULL,									\
      (GClassInitFunc) klass_init,						\
      NULL,									\
      NULL,									\
      sizeof (type_struct),							\
      0,									\
      (GInstanceInitFunc) inst_init,						\
    };										\
										\
    type = g_type_register_static (parent, #type_struct, &type_info, 0);	\
  }										\
										\
  return type;									\
}

#define GNC_BASIC_GOBJECT_NEW(type_struct,new_fcn,get_type_fcn)			\
type_struct *									\
new_fcn (void)									\
{										\
  return (type_struct *) g_object_new(get_type_fcn (), NULL);			\
}

#define GNC_BASIC_GOBJECT(type_struct,klass_struct,parent,klass_init,inst_init,get_type_fcn,new_fcn)	\
GNC_BASIC_GOBJECT_TYPE(type_struct,klass_struct,parent,klass_init,inst_init,get_type_fcn) \
GNC_BASIC_GOBJECT_NEW(type_struct,new_fcn,get_type_fcn)

#endif /* GNC_BASIC_GOBJECT_H */