00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #pragma once
00024 #ifndef _PROBE_API_H
00025 #define _PROBE_API_H
00026
00027 #include "public/probe-api.h"
00028 #include "probe-cache.h"
00029 #include "encache.h"
00030
00035 struct id_desc_t {
00036 #ifndef HAVE_ATOMIC_FUNCTIONS
00037 pthread_mutex_t item_id_ctr_lock;
00038 #endif
00039 int item_id_ctr;
00040 };
00041
00042 #include <sys/cdefs.h>
00043 #define OSCAP_GSYM(s) __CONCAT(___G_, s)
00044
00045 extern SEAP_CTX_t *OSCAP_GSYM(ctx);
00046 extern int OSCAP_GSYM(sd);
00047 extern pcache_t *OSCAP_GSYM(pcache);
00048 extern void *OSCAP_GSYM(probe_arg);
00049 extern encache_t *OSCAP_GSYM(encache);
00050 extern struct id_desc_t OSCAP_GSYM(id_desc);
00051
00052 #define SEAP_LOCK pthread_mutex_lock (&globals.seap_lock)
00053 #define SEAP_UNLOCK pthread_mutex_unlock (&globals.seap_lock)
00054
00055 #endif