Open SCAP Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
oval_sexp.h
Go to the documentation of this file.
1 
11 /*
12  * Copyright 2009-2010 Red Hat Inc., Durham, North Carolina.
13  * All Rights Reserved.
14  *
15  * This library is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU Lesser General Public
17  * License as published by the Free Software Foundation; either
18  * version 2.1 of the License, or (at your option) any later version.
19  *
20  * This library is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23  * Lesser General Public License for more details.
24  *
25  * You should have received a copy of the GNU Lesser General Public
26  * License along with this library; if not, write to the Free Software
27  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28  *
29  * Authors:
30  * "Daniel Kopecek" <dkopecek@redhat.com>
31  */
32 
33 #pragma once
34 #ifndef OVAL_SEXP_H
35 #define OVAL_SEXP_H
36 
37 #include <seap.h>
38 #include "../common/util.h"
39 #include "oval_definitions_impl.h"
40 
41 OSCAP_HIDDEN_START;
42 
43 /*
44  * OVAL -> S-exp
45  */
46 SEXP_t *oval_value_to_sexp(struct oval_value *val, oval_datatype_t dtype);
47 
48 int oval_object_to_sexp(void *sess, const char *typestr, struct oval_syschar *syschar, SEXP_t **out_sexp);
49 int oval_state_to_sexp(void *sess, struct oval_state *state, SEXP_t **out_sexp);
50 
51 /*
52  * S-exp -> OVAL
53  */
54 int oval_sexp_to_sysch(const SEXP_t *cobj, struct oval_syschar *syschar);
55 OSCAP_HIDDEN_END;
56 
57 #endif /* OVAL_SEXP_H */
58 
An Oval_state instance is a collection of one or more characteristics pertaining to a specific object...
Definition: oval_state.c:45
OVAL object or item entity value.
Definition: oval_value.c:45
oval_datatype_t
Datatypes.
Definition: oval_definitions.h:149
Characteristics bound to an Oval_object.
Definition: oval_syschar.c:48
Definition: sexp-types.h:82
Open Vulnerability and Assessment Language.