\doxysection{comps\+\_\+docpackage.\+h}
\hypertarget{comps__docpackage_8h_source}{}\label{comps__docpackage_8h_source}\index{comps\_docpackage.h@{comps\_docpackage.h}}
\mbox{\hyperlink{comps__docpackage_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/*\ libcomps\ -\/\ C\ alternative\ to\ yum.comps\ library}}
\DoxyCodeLine{00002\ \textcolor{comment}{\ *\ Copyright\ (C)\ 2013\ Jindrich\ Luza}}
\DoxyCodeLine{00003\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ *\ This\ program\ is\ free\ software;\ you\ can\ redistribute\ it\ and/or\ modify}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ *\ it\ under\ the\ terms\ of\ the\ GNU\ General\ Public\ License\ as\ published\ by}}
\DoxyCodeLine{00006\ \textcolor{comment}{\ *\ the\ Free\ Software\ Foundation;\ either\ version\ 2\ of\ the\ License,\ or}}
\DoxyCodeLine{00007\ \textcolor{comment}{\ *\ any\ later\ version.}}
\DoxyCodeLine{00008\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00009\ \textcolor{comment}{\ *\ This\ program\ is\ distributed\ in\ the\ hope\ that\ it\ will\ be\ useful,\ but}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ *\ WITHOUT\ ANY\ WARRANTY;\ without\ even\ the\ implied\ warranty\ of}}
\DoxyCodeLine{00011\ \textcolor{comment}{\ *\ MERCHANTABILITY\ or\ FITNESS\ FOR\ A\ PARTICULAR\ PURPOSE.\ See\ the}}
\DoxyCodeLine{00012\ \textcolor{comment}{\ *\ GNU\ General\ Public\ License\ for\ more\ details.}}
\DoxyCodeLine{00013\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00014\ \textcolor{comment}{\ *\ You\ should\ have\ received\ a\ copy\ of\ the\ GNU\ General\ Public\ License}}
\DoxyCodeLine{00015\ \textcolor{comment}{\ *\ along\ with\ this\ program;\ if\ not,\ write\ to\ \ Free\ Software}}
\DoxyCodeLine{00016\ \textcolor{comment}{\ *\ Foundation,\ Inc.,\ 51\ Franklin\ Street,\ Fifth\ Floor,\ Boston,\ MA\ \ 02110-\/1301,}}
\DoxyCodeLine{00017\ \textcolor{comment}{\ *\ USA}}
\DoxyCodeLine{00018\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00019\ }
\DoxyCodeLine{00020\ \textcolor{preprocessor}{\#ifndef\ COMPS\_DOCPACKAGE\_H}}
\DoxyCodeLine{00021\ \textcolor{preprocessor}{\#define\ COMPS\_DOCPACKAGE\_H}}
\DoxyCodeLine{00022\ }
\DoxyCodeLine{00023\ \textcolor{preprocessor}{\#include\ "{}comps\_utils.h"{}}}
\DoxyCodeLine{00024\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{comps__obj_8h}{comps\_obj.h}}"{}}}
\DoxyCodeLine{00025\ \textcolor{preprocessor}{\#include\ "{}comps\_log.h"{}}}
\DoxyCodeLine{00026\ }
\DoxyCodeLine{00027\ \textcolor{preprocessor}{\#include\ "{}comps\_validate.h"{}}}
\DoxyCodeLine{00028\ \textcolor{preprocessor}{\#include\ "{}comps\_default.h"{}}}
\DoxyCodeLine{00029\ }
\DoxyCodeLine{00033\ }
\DoxyCodeLine{00036\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}\ \{COMPS\_PACKAGE\_DEFAULT,\ COMPS\_PACKAGE\_OPTIONAL,}
\DoxyCodeLine{00037\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ COMPS\_PACKAGE\_CONDITIONAL,\ COMPS\_PACKAGE\_MANDATORY,}
\DoxyCodeLine{00038\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ COMPS\_PACKAGE\_UNKNOWN\}\ \mbox{\hyperlink{comps__docpackage_8h_ab1316a92e5193f11bf9e1a0d6f228a6e}{COMPS\_PackageType}};}
\DoxyCodeLine{00039\ }
\DoxyCodeLine{00041\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00042\ \ \ \ \ \mbox{\hyperlink{comps__obj_8h_a00fd526b6bb8d3a008e65267184d457b}{COMPS\_Object\_HEAD}};}
\DoxyCodeLine{00043\ \ \ \ \ \mbox{\hyperlink{comps__docpackage_8h_ab1316a92e5193f11bf9e1a0d6f228a6e}{COMPS\_PackageType}}\ \mbox{\hyperlink{structCOMPS__DocGroupPackage_a398b47ca252c4bae84106d8dc050a0fe}{type}};\ }
\DoxyCodeLine{00044\ \ \ \ \ \mbox{\hyperlink{structCOMPS__Str}{COMPS\_Str}}\ *\mbox{\hyperlink{structCOMPS__DocGroupPackage_aec9eb0fa9f73679e1883adb96bcb3f62}{name}};\ }
\DoxyCodeLine{00045\ \ \ \ \ \mbox{\hyperlink{structCOMPS__Str}{COMPS\_Str}}\ *\textcolor{keyword}{requires};\ }
\DoxyCodeLine{00046\ \ \ \ \ \mbox{\hyperlink{structCOMPS__Num}{COMPS\_Num}}\ *\mbox{\hyperlink{structCOMPS__DocGroupPackage_a5747b615fa0ba3ede4d0f2bdc02e540c}{basearchonly}};}
\DoxyCodeLine{00047\ \ \ \ \ \mbox{\hyperlink{structCOMPS__ObjList}{COMPS\_ObjList}}\ *arches;}
\DoxyCodeLine{00048\ \}\ \mbox{\hyperlink{structCOMPS__DocGroupPackage}{COMPS\_DocGroupPackage}};}
\DoxyCodeLine{00049\ }
\DoxyCodeLine{00050\ }
\DoxyCodeLine{00051\ \textcolor{comment}{//HEAD\_COMPS\_CREATE\_u(docpackage,\ COMPS\_DocGroupPackagePackage)\ \ /*comps\_utils.h\ macro*/}}
\DoxyCodeLine{00052\ \textcolor{comment}{//HEAD\_COMPS\_COPY\_u(docpackage,\ COMPS\_DocGroupPackagePackage)\ \ /*comps\_utils.h\ macro*/}}
\DoxyCodeLine{00053\ \textcolor{comment}{//HEAD\_COMPS\_DESTROY\_u(docpackage,\ COMPS\_DocGroupPackagePackage)\ \ /*comps\_utils.h\ macro*/}}
\DoxyCodeLine{00054\ }
\DoxyCodeLine{00055\ \textcolor{keywordtype}{signed}\ \textcolor{keywordtype}{char}\ comps\_docpackage\_cmp\_u(\mbox{\hyperlink{structCOMPS__Object}{COMPS\_Object}}\ *pkg1,\ \mbox{\hyperlink{structCOMPS__Object}{COMPS\_Object}}\ *pkg2);}
\DoxyCodeLine{00056\ \textcolor{keywordtype}{char}\ comps\_docpackage\_cmp\_set(\textcolor{keywordtype}{void}\ *pkg1,\ \textcolor{keywordtype}{void}\ *pkg2);}
\DoxyCodeLine{00057\ }
\DoxyCodeLine{00063\ \mbox{\hyperlink{structCOMPS__Object}{COMPS\_Object}}*\ \mbox{\hyperlink{comps__docpackage_8h_a378b944c1e3651efdb61c3375102b580}{comps\_docpackage\_get\_name}}(\mbox{\hyperlink{structCOMPS__DocGroupPackage}{COMPS\_DocGroupPackage}}\ *pkg);}
\DoxyCodeLine{00064\ }
\DoxyCodeLine{00072\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{comps__docpackage_8h_aaa69c9f5854186cfdb8d4c37bc76d594}{comps\_docpackage\_set\_name}}(\mbox{\hyperlink{structCOMPS__DocGroupPackage}{COMPS\_DocGroupPackage}}\ *pkg,\ \textcolor{keywordtype}{char}\ *name,\ \textcolor{keywordtype}{char}\ copy);}
\DoxyCodeLine{00073\ }
\DoxyCodeLine{00079\ \mbox{\hyperlink{structCOMPS__Object}{COMPS\_Object}}*\ \mbox{\hyperlink{comps__docpackage_8h_ac75549fc89cb860092072e2cb7cd314a}{comps\_docpackage\_get\_requires}}(\mbox{\hyperlink{structCOMPS__DocGroupPackage}{COMPS\_DocGroupPackage}}\ *pkg);}
\DoxyCodeLine{00080\ }
\DoxyCodeLine{00088\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{comps__docpackage_8h_a715017ed4a1e35dad17be6b4113dbfef}{comps\_docpackage\_set\_requires}}(\mbox{\hyperlink{structCOMPS__DocGroupPackage}{COMPS\_DocGroupPackage}}\ *pkg,\ \textcolor{keywordtype}{char}\ *\textcolor{keyword}{requires},\ \textcolor{keywordtype}{char}\ copy);}
\DoxyCodeLine{00089\ }
\DoxyCodeLine{00095\ \mbox{\hyperlink{structCOMPS__Object}{COMPS\_Object}}*\ \mbox{\hyperlink{comps__docpackage_8h_a250ae3816dbc6d8b1808ab5058e64f03}{comps\_docpackage\_get\_type}}(\mbox{\hyperlink{structCOMPS__DocGroupPackage}{COMPS\_DocGroupPackage}}\ *pkg);}
\DoxyCodeLine{00096\ }
\DoxyCodeLine{00103\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{comps__docpackage_8h_a94a0a0d03eddc8852cbb6c74277d6081}{comps\_docpackage\_set\_type}}(\mbox{\hyperlink{structCOMPS__DocGroupPackage}{COMPS\_DocGroupPackage}}\ *pkg,}
\DoxyCodeLine{00104\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{comps__docpackage_8h_ab1316a92e5193f11bf9e1a0d6f228a6e}{COMPS\_PackageType}}\ type,}
\DoxyCodeLine{00105\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{bool}\ unset);}
\DoxyCodeLine{00106\ }
\DoxyCodeLine{00111\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{comps__docpackage_8h_a1f13662b15df31ee0f3cdc975899c6c7}{comps\_docpackage\_set\_type\_i}}(\mbox{\hyperlink{structCOMPS__DocGroupPackage}{COMPS\_DocGroupPackage}}\ *pkg,\ \textcolor{keywordtype}{int}\ type,\ \textcolor{keywordtype}{bool}\ unset);}
\DoxyCodeLine{00112\ }
\DoxyCodeLine{00117\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}*\ \mbox{\hyperlink{comps__docpackage_8h_a8041f01b09b9910fd19034a89c794e4f}{comps\_docpackage\_type\_str}}(\mbox{\hyperlink{comps__docpackage_8h_ab1316a92e5193f11bf9e1a0d6f228a6e}{COMPS\_PackageType}}\ type);}
\DoxyCodeLine{00118\ }
\DoxyCodeLine{00123\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{comps__docpackage_8h_a2abeacafdb5b101bbc43c7f843527e10}{comps\_docpackage\_set\_basearchonly}}(\mbox{\hyperlink{structCOMPS__DocGroupPackage}{COMPS\_DocGroupPackage}}\ *pkg,}
\DoxyCodeLine{00124\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{int}\ basearchonly,\ \textcolor{keywordtype}{bool}\ unset);}
\DoxyCodeLine{00125\ }
\DoxyCodeLine{00130\ \mbox{\hyperlink{structCOMPS__Object}{COMPS\_Object}}*\ \mbox{\hyperlink{comps__docpackage_8h_a0157efc7ce4150d05f8a9b99fdeea448}{comps\_docpackage\_get\_basearchonly}}(\mbox{\hyperlink{structCOMPS__DocGroupPackage}{COMPS\_DocGroupPackage}}\ *pkg);}
\DoxyCodeLine{00131\ }
\DoxyCodeLine{00132\ \textcolor{keywordtype}{char}\ \_\_comps\_docpackage\_idcmp(\textcolor{keywordtype}{void}\ *pkg1,\ \textcolor{keywordtype}{void}\ *pkg2);}
\DoxyCodeLine{00133\ \mbox{\hyperlink{structCOMPS__ObjList}{COMPS\_ObjList}}*\ comps\_docpackage\_arches(\mbox{\hyperlink{structCOMPS__DocGroupPackage}{COMPS\_DocGroupPackage}}\ *pkg);}
\DoxyCodeLine{00134\ \textcolor{keywordtype}{void}\ comps\_docpackage\_set\_arches(\mbox{\hyperlink{structCOMPS__DocGroupPackage}{COMPS\_DocGroupPackage}}\ *pkg,}
\DoxyCodeLine{00135\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{structCOMPS__ObjList}{COMPS\_ObjList}}\ *arches);}
\DoxyCodeLine{00136\ }
\DoxyCodeLine{00137\ \textcolor{keywordtype}{signed}\ \textcolor{keywordtype}{char}\ comps\_docpackage\_xml(\mbox{\hyperlink{structCOMPS__DocGroupPackage}{COMPS\_DocGroupPackage}}\ *pkg,}
\DoxyCodeLine{00138\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ xmlTextWriterPtr\ writer,}
\DoxyCodeLine{00139\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ COMPS\_Log\ *log,\ COMPS\_XMLOptions\ *xml\_options,}
\DoxyCodeLine{00140\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ COMPS\_DefaultsOptions\ *def\_options);}
\DoxyCodeLine{00141\ }
\DoxyCodeLine{00142\ \textcolor{keyword}{extern}\ \mbox{\hyperlink{structCOMPS__ObjectInfo}{COMPS\_ObjectInfo}}\ COMPS\_DocGroupPackage\_ObjInfo;}
\DoxyCodeLine{00143\ \textcolor{keyword}{extern}\ COMPS\_ValRuleGeneric*\ COMPS\_DocGroupPackage\_ValidateRules[];}
\DoxyCodeLine{00144\ }
\DoxyCodeLine{00145\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00146\ }

\end{DoxyCode}
