00001 00011 /* 00012 * Copyright 2008 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 * Lukas Kuklinek <lkuklinek@redhat.com> 00031 * Riley C. Porter <Riley.Porter@g2-inc.com> 00032 */ 00033 00034 #include <stdbool.h> 00035 #include "list_cstring.h" 00036 #include "list_refs.h" 00037 00038 #ifndef _CCE_H 00039 #define _CCE_H 00040 00041 struct cce { 00042 char *id; 00043 char *description; 00044 struct list_cstring *parameters; 00045 struct list_cstring *technicalmechanisms; 00046 struct list_refs *references; 00047 }; 00048 00056 void cce_init(struct cce *cce); 00057 00065 void cce_clear(struct cce *cce); 00066 00073 bool cce_validate(const char *filename); 00074 00084 void cce_parse(char *docname, struct cce *cce, char *id); 00085 00086 #endif