Open SCAP Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
_probe-api.h
Go to the documentation of this file.
1 
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25  *
26  * Authors:
27  * "Daniel Kopecek" <dkopecek@redhat.com>
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 
44 struct id_desc_t {
45 #ifndef HAVE_ATOMIC_FUNCTIONS
46  pthread_mutex_t item_id_ctr_lock;
47 #endif
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 */
int item_id_ctr
id counter
Definition: _probe-api.h:48
pthread_mutex_t item_id_ctr_lock
id counter lock
Definition: _probe-api.h:46
Probe API public header.
Holds information for item ids generation.
Definition: _probe-api.h:44