• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

/home/pvrabec/project/openscap/openscap-0.6.4/src/OVAL/probes/_probe-api.h

Go to the documentation of this file.
00001 
00008 /*
00009  * Copyright 2009 Red Hat Inc., Durham, North Carolina.
00010  * All Rights Reserved.
00011  *
00012  * This library is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU Lesser General Public
00014  * License as published by the Free Software Foundation; either
00015  * version 2.1 of the License, or (at your option) any later version.
00016  *
00017  * This library is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020  * Lesser General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU Lesser General Public
00023  * License along with this library; if not, write to the Free Software
00024  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025  *
00026  * Authors:
00027  *      "Daniel Kopecek" <dkopecek@redhat.com>
00028  */
00029 
00030 #pragma once
00031 #ifndef _PROBE_API_H
00032 #define _PROBE_API_H
00033 
00034 #include <stdarg.h>
00035 #include "public/probe-api.h"
00036 #include "probe-cache.h"
00037 #include "encache.h"
00038 #include "common/util.h"
00039 
00044 struct id_desc_t {
00045 #ifndef HAVE_ATOMIC_FUNCTIONS
00046         pthread_mutex_t item_id_ctr_lock;       
00047 #endif
00048         int item_id_ctr;        
00049 };
00050 
00051 typedef struct {
00052         int option;
00053         int (*handler)(int, va_list);
00054 } probe_option_t;
00055 
00056 extern SEAP_CTX_t *OSCAP_GSYM(ctx);
00057 extern int         OSCAP_GSYM(sd);
00058 extern pcache_t   *OSCAP_GSYM(pcache);
00059 extern void       *OSCAP_GSYM(probe_arg);
00060 extern encache_t  *OSCAP_GSYM(encache);
00061 extern struct id_desc_t OSCAP_GSYM(id_desc);
00062 
00063 #define SEAP_LOCK pthread_mutex_lock (&globals.seap_lock)
00064 #define SEAP_UNLOCK pthread_mutex_unlock (&globals.seap_lock)
00065 
00066 #endif                          /* _PROBE_API_H */

Generated on Wed Oct 20 2010 for Open SCAP Library by  doxygen 1.7.1