oval_directives.h
Go to the documentation of this file.
/*
* Copyright 2011 Red Hat Inc., Durham, North Carolina.
* All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Authors:
* "David Niemoller" <David.Niemoller@g2-inc.com>
*/
#ifndef OVAL_DIRECTIVES_H_
#define OVAL_DIRECTIVES_H_
#include "oval_types.h"
typedef enum {
OVAL_DIRECTIVE_CONTENT_UNKNOWN = 0,
OVAL_DIRECTIVE_CONTENT_THIN = 1,
OVAL_DIRECTIVE_CONTENT_FULL = 2
} oval_result_directive_content_t;
struct oval_directives_model;
struct oval_directives_model *oval_directives_model_new(void);
void oval_directives_model_free(struct oval_directives_model *);
int oval_directives_model_import(struct oval_directives_model *, char *);
struct oval_generator *oval_directives_model_get_generator(struct oval_directives_model *);
struct oval_result_directives *oval_directives_model_get_defdirs(struct oval_directives_model *);
struct oval_result_directives *oval_directives_model_get_classdir(struct oval_directives_model *, oval_definition_class_t);
struct oval_result_directives *oval_directives_model_get_new_classdir(struct oval_directives_model *, oval_definition_class_t);
int oval_directives_model_export(struct oval_directives_model *, const char *);
struct oval_result_directives;
struct oval_result_directives *oval_result_directives_new(void);
void oval_result_directives_free(struct oval_result_directives *);
void oval_result_directives_set_reported(struct oval_result_directives *, int flag, bool val);
void oval_result_directives_set_content(struct oval_result_directives *, int flag, oval_result_directive_content_t);
void oval_result_directives_set_included(struct oval_result_directives *, bool);
bool oval_result_directives_get_reported(struct oval_result_directives *, oval_result_t);
bool oval_result_directives_get_included(struct oval_result_directives *);
oval_result_directive_content_t oval_result_directives_get_content(struct oval_result_directives *, oval_result_t);
#endif /* OVAL_DIRECTIVES_H_ */