00001
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #pragma once
00031 #ifndef _PROBE_API_H
00032 #define _PROBE_API_H
00033
00034 #include "public/probe-api.h"
00035 #include "probe-cache.h"
00036 #include "encache.h"
00037 #include "common/util.h"
00038
00043 struct id_desc_t {
00044 #ifndef HAVE_ATOMIC_FUNCTIONS
00045 pthread_mutex_t item_id_ctr_lock;
00046 #endif
00047 int item_id_ctr;
00048 };
00049
00050 extern SEAP_CTX_t *OSCAP_GSYM(ctx);
00051 extern int OSCAP_GSYM(sd);
00052 extern pcache_t *OSCAP_GSYM(pcache);
00053 extern void *OSCAP_GSYM(probe_arg);
00054 extern encache_t *OSCAP_GSYM(encache);
00055 extern struct id_desc_t OSCAP_GSYM(id_desc);
00056
00057 #define SEAP_LOCK pthread_mutex_lock (&globals.seap_lock)
00058 #define SEAP_UNLOCK pthread_mutex_unlock (&globals.seap_lock)
00059
00060 #endif