00001 00008 /* 00009 * Copyright 2008 Red Hat Inc., Durham, North Carolina. 00010 * All Rights Reserved. 00011 * 00012 * This library is free software; you can redistribute it and/or 00013 * modify it under the terms of the GNU Lesser General Public 00014 * License as published by the Free Software Foundation; either 00015 * version 2.1 of the License, or (at your option) any later version. 00016 * 00017 * This library is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00020 * Lesser General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU Lesser General Public 00023 * License along with this library; if not, write to the Free Software 00024 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00025 * 00026 * Authors: 00027 * Lukas Kuklinek <lkuklinek@redhat.com> 00028 * Riley C. Porter <Riley.Porter@g2-inc.com> 00029 */ 00030 00031 #include <stdbool.h> 00032 #include "list_cstring.h" 00033 #include "list_refs.h" 00034 00035 #ifndef _CCE_H 00036 #define _CCE_H 00037 00038 struct cce { 00039 char *id; 00040 char *description; 00041 struct list_cstring *parameters; 00042 struct list_cstring *technicalmechanisms; 00043 struct list_refs *references; 00044 }; 00045 00049 void cce_init(struct cce *cce); 00050 00054 void cce_clear(struct cce *cce); 00055 00060 bool cce_validate(const char *filename); 00061 00065 void cce_parse(char *docname, struct cce *cce, char *id); 00066 00067 #endif