Open SCAP Library: _oval_probe_handler.h Source File

Open SCAP Library

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

_oval_probe_handler.h
Go to the documentation of this file.
1
9 /*
10 * Copyright 2010 Red Hat Inc., Durham, North Carolina.
11 * All Rights Reserved.
12 *
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Lesser General Public
15 * License as published by the Free Software Foundation; either
16 * version 2.1 of the License, or (at your option) any later version.
17 *
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Lesser General Public License for more details.
22 *
23 * You should have received a copy of the GNU Lesser General Public
24 * License along with this library; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 *
27 * Authors:
28 * "Daniel Kopecek" <dkopecek@redhat.com>
29 */
30 #ifndef _OVAL_PROBE_HANDLER
31 #define _OVAL_PROBE_HANDLER
32
33 #include <stdint.h>
34 #include "public/oval_probe_handler.h"
35
36 struct oval_ph {
37 oval_subtype_t type;
38 oval_probe_handler_t *func;
39 void *uptr;
40 };
41
42 struct oval_phtbl {
43 struct oval_ph **ph;
44 uint32_t sz;
45 };
46
47 oval_phtbl_t *oval_phtbl_new(void);
48 void oval_phtbl_free(oval_phtbl_t *phtbl);
49 oval_ph_t *oval_probe_handler_get(oval_phtbl_t *phtbl, oval_subtype_t type);
50 int oval_probe_handler_set(oval_phtbl_t *phtbl, oval_subtype_t type, oval_probe_handler_t *handler, void *uptr);
51
53 #endif /* _OVAL_PROBE_HANDLER */
oval_subtype_t
oval_subtype_t
Unknown subtypes.
Definition: oval_types.h:120
oval_phtbl
Definition: _oval_probe_handler.h:42
oval_ph
Definition: _oval_probe_handler.h:36
oval_probe_handler_t
int( oval_probe_handler_t)(oval_subtype_t, void *, int,...)
Type of the handler function.
Definition: oval_probe_handler.h:44