libcomps  ..
 All Data Structures Files Functions Variables Enumerations Macros Modules Pages
comps_docgroupid.h
Go to the documentation of this file.
1 /* libcomps - C alternative to yum.comps library
2  * Copyright (C) 2013 Jindrich Luza
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17  * USA
18  */
19 
24 #ifndef COMPS_DOCGROUPID_H
25 #define COMPS_DOCGROUPID_H
26 
27 #include <stdbool.h>
28 
29 #include "comps_utils.h"
30 #include "comps_log.h"
31 #include "comps_validate.h"
32 #include "comps_default.h"
33 
35 typedef struct {
39  bool def;
41  COMPS_ObjList *arches;
43 
44 //HEAD_COMPS_CREATE_u(docgroupid, COMPS_DocGroupId) /*comps_utils.h macro*/
45 //HEAD_COMPS_COPY_u(docgroupid, COMPS_DocGroupId) /*comps_utils.h macro*/
46 //HEAD_COMPS_DESTROY_u(docgroupid, COMPS_DocGroupId) /*comps_utils.h macro*/
47 
48 char __comps_docgroupid_cmp_set(void *gid1, void *gid2);
49 
56 
63 void comps_docgroupid_set_name(COMPS_DocGroupId *gid, char *name, char copy);
64 
71 
79 
80 COMPS_ObjList* comps_docgroupid_arches(COMPS_DocGroupId *gid);
81 void comps_docgroupid_set_arches(COMPS_DocGroupId *gid,
82  COMPS_ObjList *arches);
83 
84 signed char comps_docgroupid_xml(COMPS_DocGroupId *groupid,
85  xmlTextWriterPtr writer,
86  COMPS_Log *log, COMPS_XMLOptions *options,
87  COMPS_DefaultsOptions *def_options);
88 
89 extern COMPS_ObjectInfo COMPS_DocGroupId_ObjInfo;
90 extern COMPS_ValRuleGeneric* COMPS_DocGroupId_ValidateRules[];
91 
92 #endif
#define COMPS_Object_HEAD
Definition: comps_obj.h:65
COMPS_Str * name
Definition: comps_docgroupid.h:37
Definition: comps_obj.h:101
Definition: comps_objlist.h:41
void comps_docgroupid_set_name(COMPS_DocGroupId *gid, char *name, char copy)
Definition: comps_obj.h:119
COMPS_Object * comps_docgroupid_get_name(COMPS_DocGroupId *gid)
Definition: comps_obj.h:79
void comps_docgroupid_set_default(COMPS_DocGroupId *gid, int def)
bool def
Definition: comps_docgroupid.h:39
COMPS_Object * comps_docgroupid_get_default(COMPS_DocGroupId *gid)
Definition: comps_docgroupid.h:35