Open SCAP Library
Loading...
Searching...
No Matches
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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"
40
41
42/*
43 * OVAL -> S-exp
44 */
45SEXP_t *oval_value_to_sexp(struct oval_value *val, oval_datatype_t dtype);
46
47int oval_object_to_sexp(void *sess, const char *typestr, struct oval_syschar *syschar, SEXP_t **out_sexp);
48int oval_state_to_sexp(void *sess, struct oval_state *state, SEXP_t **out_sexp);
49
50/*
51 * S-exp -> OVAL
52 */
53int oval_sexp_to_sysch(const SEXP_t *cobj, struct oval_syschar *syschar);
54
55#endif /* OVAL_SEXP_H */
56
oval_datatype_t
Datatypes.
Definition oval_definitions.h:149
Open Vulnerability and Assessment Language.
Definition sexp-types.h:82
An Oval_state instance is a collection of one or more characteristics pertaining to a specific object...
Definition oval_state.c:45
Characteristics bound to an Oval_object.
Definition oval_syschar.c:47
OVAL object or item entity value.
Definition oval_value.c:45