Open SCAP Library
/home/pvrabec/project/openscap/openscap-0.8.0/src/common/public/reference.h
00001 /*
00002  * Copyright 2010 Red Hat Inc., Durham, North Carolina.
00003  * All Rights Reserved.
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  *
00019  * Authors:
00020  *       Lukas Kuklinek <lkuklinek@redhat.com>
00021  */
00022 
00023 
00024 #pragma once
00025 #ifndef OSCAP_REFERENCE_H_
00026 #define OSCAP_REFERENCE_H_
00027 
00031 struct oscap_reference;
00032 
00034 struct oscap_reference_iterator;
00036 bool oscap_reference_iterator_has_more(struct oscap_reference_iterator *it);
00038 struct oscap_reference *oscap_reference_iterator_next(struct oscap_reference_iterator *it);
00040 void oscap_reference_iterator_free(struct oscap_reference_iterator *it);
00042 void oscap_reference_iterator_reset(struct oscap_reference_iterator *it);
00043 
00045 struct oscap_reference *oscap_reference_new(void);
00047 void oscap_reference_free(struct oscap_reference *ref);
00049 struct oscap_reference *oscap_reference_clone(const struct oscap_reference *ref);
00050 
00052 bool oscap_reference_get_is_dublincore(const struct oscap_reference *item);
00054 bool oscap_reference_set_is_dublincore(struct oscap_reference *obj, bool newval);
00055 
00057 const char *oscap_reference_get_title(const struct oscap_reference *item);
00059 bool oscap_reference_set_title(struct oscap_reference *obj, const char *newval);
00061 const char *oscap_reference_get_creator(const struct oscap_reference *item);
00063 bool oscap_reference_set_creator(struct oscap_reference *obj, const char *newval);
00065 const char *oscap_reference_get_subject(const struct oscap_reference *item);
00067 bool oscap_reference_set_subject(struct oscap_reference *obj, const char *newval);
00069 const char *oscap_reference_get_description(const struct oscap_reference *item);
00071 bool oscap_reference_set_description(struct oscap_reference *obj, const char *newval);
00073 const char *oscap_reference_get_publisher(const struct oscap_reference *item);
00075 bool oscap_reference_set_publisher(struct oscap_reference *obj, const char *newval);
00077 const char *oscap_reference_get_contributor(const struct oscap_reference *item);
00079 bool oscap_reference_set_contributor(struct oscap_reference *obj, const char *newval);
00081 const char *oscap_reference_get_date(const struct oscap_reference *item);
00083 bool oscap_reference_set_date(struct oscap_reference *obj, const char *newval);
00085 const char *oscap_reference_get_type(const struct oscap_reference *item);
00087 bool oscap_reference_set_type(struct oscap_reference *obj, const char *newval);
00089 const char *oscap_reference_get_format(const struct oscap_reference *item);
00091 bool oscap_reference_set_format(struct oscap_reference *obj, const char *newval);
00093 const char *oscap_reference_get_identifier(const struct oscap_reference *item);
00095 bool oscap_reference_set_identifier(struct oscap_reference *obj, const char *newval);
00097 const char *oscap_reference_get_source(const struct oscap_reference *item);
00099 bool oscap_reference_set_source(struct oscap_reference *obj, const char *newval);
00101 const char *oscap_reference_get_language(const struct oscap_reference *item);
00103 bool oscap_reference_set_language(struct oscap_reference *obj, const char *newval);
00105 const char *oscap_reference_get_relation(const struct oscap_reference *item);
00107 bool oscap_reference_set_relation(struct oscap_reference *obj, const char *newval);
00109 const char *oscap_reference_get_coverage(const struct oscap_reference *item);
00111 bool oscap_reference_set_coverage(struct oscap_reference *obj, const char *newval);
00113 const char *oscap_reference_get_rights(const struct oscap_reference *item);
00115 bool oscap_reference_set_rights(struct oscap_reference *obj, const char *newval);
00116 
00117 #endif