This file is indexed.

/usr/include/openhpi/announcement_utils.h is in libopenhpi-dev 3.6.1-3.1build1.

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
/*      -*- linux-c -*-
 *
 * (C) Copyright IBM Corp. 2004
 *
 * 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.  This
 * file and program are licensed under a BSD style license.  See
 * the Copying file included with the OpenHPI distribution for
 * full licensing terms.
 *
 * Authors:
 *      David Ashley <dashley@us.ibm.com>
 *      Renier Morales <renier@openhpi.org>
 */

#ifndef __ANNOUNCEMENT_UTILS_H
#define __ANNOUNCEMENT_UTILS_H

#ifndef __OH_UTILS_H
#warning *** Include oh_utils.h instead of individual utility header files ***
#endif

#include <SaHpi.h>
#include <glib.h>

#ifdef __cplusplus
extern "C" {
#endif

#define OH_ANNOUNCEMENT_MAX_SIZE 0

/* this struct encapsulates all the data for annunciator announcements */
/* the log records themselves are stored in the el GList */
typedef struct {
        SaHpiEventLogEntryIdT nextId; // next generated Id i.e. number of entries
        GList            *annentries; // list of oh_ann_entry structs
} oh_announcement;

/* this structure encapsulates the actual log entry and its context */
typedef struct {
        SaHpiAnnouncementT    annentry;
        SaHpiAnnunciatorNumT  num; // associated annunciator
} oh_ann_entry;

/* General EL utility calls */
oh_announcement *oh_announcement_create(void);
SaErrorT oh_announcement_close(oh_announcement *ann);
SaErrorT oh_announcement_append(oh_announcement *ann, SaHpiAnnouncementT *myann);
SaErrorT oh_announcement_clear(oh_announcement *ann);
SaErrorT oh_announcement_get(oh_announcement *ann, SaHpiEntryIdT srchid,
                             SaHpiAnnouncementT *myann);
SaErrorT oh_announcement_get_next(oh_announcement *ann, SaHpiSeverityT sev,
                                  SaHpiBoolT ack, SaHpiAnnouncementT *entry);
SaErrorT oh_announcement_ack(oh_announcement *ann, SaHpiEntryIdT entry,
                             SaHpiSeverityT sev);
SaErrorT oh_announcement_del(oh_announcement *ann, SaHpiEntryIdT entry,
                             SaHpiSeverityT sev);


#ifdef __cplusplus
}
#endif

#endif