Open SCAP Library
/home/pvrabec/project/openscap/openscap-0.8.1/src/OVAL/oval_sexp.h
Go to the documentation of this file.
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 "../common/util.h"
00039 #include "oval_definitions_impl.h"
00040 
00041 OSCAP_HIDDEN_START;
00042 
00043 /*
00044  * OVAL -> S-exp
00045  */
00046 SEXP_t *oval_value_to_sexp(struct oval_value *val, oval_datatype_t dtype);
00047 
00048 int oval_object_to_sexp(void *sess, const char *typestr, struct oval_syschar *syschar, SEXP_t **out_sexp);
00049 int oval_state_to_sexp(void *sess, struct oval_state *state, SEXP_t **out_sexp);
00050 
00051 /*
00052  * S-exp -> OVAL
00053  */
00054 int oval_sexp_to_sysch(const SEXP_t *cobj, struct oval_syschar *syschar);
00055 OSCAP_HIDDEN_END;
00056 
00057 #endif                          /* OVAL_SEXP_H */