Open SCAP Library
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 
42 /*
43  * OVAL -> S-exp
44  */
45 SEXP_t *oval_value_to_sexp(struct oval_value *val, oval_datatype_t dtype);
46 
47 int oval_object_to_sexp(void *sess, const char *typestr, struct oval_syschar *syschar, SEXP_t **out_sexp);
48 int oval_state_to_sexp(void *sess, struct oval_state *state, SEXP_t **out_sexp);
49 
50 /*
51  * S-exp -> OVAL
52  */
53 int oval_sexp_to_sysch(const SEXP_t *cobj, struct oval_syschar *syschar);
54 
55 #endif /* OVAL_SEXP_H */
56 
oval_definitions_impl.h
Open Vulnerability and Assessment Language.
oval_datatype_t
oval_datatype_t
Datatypes.
Definition: oval_definitions.h:149
oval_state
Definition: oval_state.c:45
oval_value
Definition: oval_value.c:45
SEXP
Definition: sexp-types.h:82
oval_syschar
Definition: oval_syschar.c:47