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