| 1 | /** |
| 2 | * @file oval_sexp.h |
| 3 | * @brief OVAL to/from S-exp conversion functions - header file |
| 4 | * @author "Daniel Kopecek" <[email protected]> |
| 5 | * @author "Lukas Kuklinek" <[email protected]> |
| 6 | * @author "Tomas Heinrich" <[email protected]> |
| 7 | * |
| 8 | * @addtogroup PROBEOVALSEXP |
| 9 | * @{ |
| 10 | */ |
| 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" <[email protected]> |
| 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 | |
| 57 | /// @} |