This file is indexed.

/usr/include/pacemaker/crm/pengine/complex.h is in libpengine3-dev 1.1.6-2ubuntu3.

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
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/* 
 * Copyright (C) 2004 Andrew Beekhof <andrew@beekhof.net>
 * 
 * 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 software 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 library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
#ifndef PENGINE_COMPLEX__H
#define PENGINE_COMPLEX__H

#define n_object_classes 3

/*#define PE_OBJ_F_	""*/

#define PE_OBJ_T_NATIVE		"native"
#define PE_OBJ_T_GROUP		"group"
#define PE_OBJ_T_INCARNATION	"clone"
#define PE_OBJ_T_MASTER		"master"

enum pe_obj_types 
{
	pe_unknown = -1,
	pe_native = 0,
	pe_group = 1,
	pe_clone = 2,
	pe_master = 3
};

extern enum pe_obj_types get_resource_type(const char *name);
extern const char *get_resource_typename(enum pe_obj_types type);


typedef struct resource_object_functions_s 
{
		gboolean (*unpack)(resource_t *, pe_working_set_t *);
		resource_t *(*find_rsc)(resource_t *parent, const char *search, node_t *node, int flags);
		/* parameter result must be free'd */
		char *(*parameter)(
			resource_t *, node_t *, gboolean, const char *,
			pe_working_set_t *);
		void (*print)(resource_t *, const char *, long, void *);
		gboolean (*active)(resource_t *,gboolean);
		enum rsc_role_e (*state)(const resource_t *, gboolean);
		node_t *(*location)(resource_t *, GListPtr*, gboolean);
		void (*free)(resource_t *);
} resource_object_functions_t;

extern void common_update_score(resource_t *rsc, const char *id, int score);

extern char *native_parameter(
	resource_t *rsc, node_t *node, gboolean create, const char *name,
	pe_working_set_t *data_set);

extern gboolean native_unpack(resource_t *rsc, pe_working_set_t *data_set);
extern gboolean group_unpack(resource_t *rsc, pe_working_set_t *data_set);
extern gboolean clone_unpack(resource_t *rsc, pe_working_set_t *data_set);
extern gboolean master_unpack(resource_t *rsc, pe_working_set_t *data_set);

extern resource_t *native_find_rsc(
    resource_t *rsc, const char *id, node_t *node, int flags);

extern gboolean native_active(resource_t *rsc, gboolean all);
extern gboolean group_active(resource_t *rsc, gboolean all);
extern gboolean clone_active(resource_t *rsc, gboolean all);
extern gboolean master_active(resource_t *rsc, gboolean all);

extern void native_print(
	resource_t *rsc, const char *pre_text, long options, void *print_data);
extern void group_print(
	resource_t *rsc, const char *pre_text, long options, void *print_data);
extern void clone_print(
	resource_t *rsc, const char *pre_text, long options, void *print_data);
extern void master_print(
	resource_t *rsc, const char *pre_text, long options, void *print_data);

extern void native_free(resource_t *rsc);
extern void group_free(resource_t *rsc);
extern void clone_free(resource_t *rsc);
extern void master_free(resource_t *rsc);

extern enum rsc_role_e native_resource_state(const resource_t *rsc, gboolean current);
extern enum rsc_role_e group_resource_state(const resource_t *rsc, gboolean current);
extern enum rsc_role_e clone_resource_state(const resource_t *rsc, gboolean current);
extern enum rsc_role_e master_resource_state(const resource_t *rsc, gboolean current);

extern node_t *native_location(resource_t *rsc, GListPtr *list, gboolean current);

extern resource_object_functions_t resource_class_functions[];
extern gboolean	common_unpack(xmlNode * xml_obj, resource_t **rsc,
			      resource_t *parent, pe_working_set_t *data_set);

extern void common_print(resource_t *rsc, const char *pre_text, long options, void *print_data);

extern void common_free(resource_t *rsc);
extern void native_add_running(
	resource_t *rsc, node_t *node, pe_working_set_t *data_set);
extern void get_meta_attributes(GHashTable *meta_hash, resource_t *rsc,
				node_t *node, pe_working_set_t *data_set);
extern void get_rsc_attributes(GHashTable *meta_hash, resource_t *rsc,
				node_t *node, pe_working_set_t *data_set);

typedef struct resource_alloc_functions_s resource_alloc_functions_t;
extern resource_t *uber_parent(resource_t *rsc);
extern node_t *rsc_known_on(resource_t *rsc, GListPtr *list);

#endif