00001 00011 /* 00012 * Copyright 2009-2010 Red Hat Inc., Durham, North Carolina. 00013 * All Rights Reserved. 00014 * 00015 * This library is free software; you can redistribute it and/or 00016 * modify it under the terms of the GNU Lesser General Public 00017 * License as published by the Free Software Foundation; either 00018 * version 2.1 of the License, or (at your option) any later version. 00019 * 00020 * This library is distributed in the hope that it will be useful, 00021 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00023 * Lesser General Public License for more details. 00024 * 00025 * You should have received a copy of the GNU Lesser General Public 00026 * License along with this library; if not, write to the Free Software 00027 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00028 * 00029 * Authors: 00030 * "Daniel Kopecek" <dkopecek@redhat.com> 00031 */ 00032 00033 #pragma once 00034 #ifndef OVAL_SEXP_H 00035 #define OVAL_SEXP_H 00036 00037 #include <seap.h> 00038 #include <config.h> 00039 #include "../common/util.h" 00040 #include "oval_definitions_impl.h" 00041 00042 OSCAP_HIDDEN_START; 00043 00044 /* 00045 * OVAL -> S-exp 00046 */ 00047 SEXP_t *oval_value_to_sexp(struct oval_value *val, oval_datatype_t dtype); 00048 00049 int oval_object2sexp(void *sess, const char *typestr, struct oval_syschar *syschar, SEXP_t **out_sexp); 00050 int oval_state2sexp(void *sess, struct oval_state *state, SEXP_t **out_sexp); 00051 00052 /* 00053 * S-exp -> OVAL 00054 */ 00055 int oval_sexp2sysch(const SEXP_t *cobj, struct oval_syschar *syschar); 00056 OSCAP_HIDDEN_END; 00057 00058 #endif /* OVAL_SEXP_H */