Debian Codegraph @

src/OVAL/probes/_probe-api.h

raw symbols SCIP
1 /**
2 * @file _probe-api.h
3 * @brief probe API private header file
4 * @author "Daniel Kopecek" <[email protected]>
5 * @author "Tomas Heinrich" <[email protected]>
6 */
7
8 /*
9 * Copyright 2009 Red Hat Inc., Durham, North Carolina.
10 * All Rights Reserved.
11 *
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public
14 * License as published by the Free Software Foundation; either
15 * version 2.1 of the License, or (at your option) any later version.
16 *
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Lesser General Public License for more details.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 *
26 * Authors:
27 * "Daniel Kopecek" <[email protected]>
28 */
29
30 #pragma once
31 #ifndef _PROBE_API_H
32 #define _PROBE_API_H
33
34 #include <stdarg.h>
35 #include "public/probe-api.h"
36 #include "probe/ncache.h"
37 #include "probe/rcache.h"
38 #include "common/util.h"
39
40 /**
41 * @struct id_desc_t
42 * Holds information for item ids generation.
43 */
44 struct id_desc_t {
45 #ifndef HAVE_ATOMIC_FUNCTIONS
46 pthread_mutex_t item_id_ctr_lock; ///< id counter lock
47 #endif
48 int item_id_ctr; ///< id counter
49 };
50
51 #define SEAP_LOCK pthread_mutex_lock (&globals.seap_lock)
52 #define SEAP_UNLOCK pthread_mutex_unlock (&globals.seap_lock)
53
54 #endif /* _PROBE_API_H */