This file is indexed.

/usr/include/OpenDRIM/Indication.h is in libopendrim0-dev 1.1.3-0ubuntu3.

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
/*################################################################################
# Linux Management Providers (LMP), Provider Common Library
# Copyright (C) 2007 Frederic Desmons, ETRI <desmons@etri.re.kr, desmons_frederic@yahoo.fr>
# 
# This program is being developed under the "OpenDRIM" project.
# The "OpenDRIM" project web page: http://opendrim.sourceforge.net
# The "OpenDRIM" project mailing list: opendrim@googlegroups.com
# 
# 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; version 2
# of the License.
# 
# 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
#################################################################################

#################################################################################
# To contributors, please leave your contact information in this section
# AND comment your changes in the source code.
# 
# Modified by <Author(s)>, <Affiliation>, <Year>
################################################################################*/

#ifndef INDICATION_H_
#define INDICATION_H_

#include "cmpidt.h"
#include "cmpimacs.h"

#include "Common.h"

using namespace std;

// Worker state possible values
#define BROKER_NOT_REGISTERED 0x0010
#define BROKER_REGISTERED     0x0001
#define WORKER_STOP           0x0002
#define WORKER_START          0x0004
#define WORKER_END_LIFE       0x0008

// Worker state
typedef struct {
	pthread_mutex_t mutex;
	int flag;
} _workerFlag;

typedef struct {
	pthread_mutex_t mutex;
	pthread_cond_t cond;
} _workerSleep;

typedef struct {
	pthread_mutex_t mutex;
	CMPISelectExp* filter;
	bool isSet;
} _indicationFilter;

// Enable an indication filter
void CI_enableFilter(bool& enabled, _workerFlag& workerFlag, _workerSleep& workerSleep);

// Disable an indication filter
void CI_disableFilter(bool& enabled, _workerFlag& workerFlag);

// Add an indication filter
int CI_addFilter(const CMPISelectExp* filter, _indicationFilter& indicationFilter, bool enabled, _workerFlag& workerFlag, _workerSleep& workerSleep, string& errorMessage);

// Remove an indication filter
int CI_removeFilter(const CMPISelectExp* filter, _indicationFilter& indicationFilter, string& errorMessage);

// Initialize an indication worker
int CI_initWorker(const CMPIBroker* broker, const CMPIContext* ctx, bool& inited, _workerFlag& workerFlag, void* (*worker)(void*), pthread_t& workerID, string& errorMessage);

// Finalize an indication worker
int CI_finalizeWorker(_workerFlag& workerFlag, _workerSleep& workerSleep, pthread_t workerID, bool& inited, _indicationFilter& indicationFilter, string& errorMessage);

#endif /*INDICATION_H_*/