libcomps  ..
 All Data Structures Files Functions Variables Enumerations Macros Groups Pages
Data Structures | Enumerations | Functions
comps_docpackage.h File Reference

COMPS_DocPackage header file. More...

#include "comps_utils.h"
#include "comps_obj.h"
#include "comps_log.h"
#include "comps_validate.h"
#include "comps_default.h"

Go to the source code of this file.

Data Structures

struct  COMPS_DocGroupPackage
 

Enumerations

enum  COMPS_PackageType
 

Functions

COMPS_Objectcomps_docpackage_get_name (COMPS_DocGroupPackage *pkg)
 
void comps_docpackage_set_name (COMPS_DocGroupPackage *pkg, char *name, char copy)
 
COMPS_Objectcomps_docpackage_get_requires (COMPS_DocGroupPackage *pkg)
 
void comps_docpackage_set_requires (COMPS_DocGroupPackage *pkg, char *requires, char copy)
 
COMPS_Objectcomps_docpackage_get_type (COMPS_DocGroupPackage *pkg)
 
void comps_docpackage_set_type (COMPS_DocGroupPackage *pkg, COMPS_PackageType type, bool unset)
 
void comps_docpackage_set_type_i (COMPS_DocGroupPackage *pkg, int type, bool unset)
 
const char * comps_docpackage_type_str (COMPS_PackageType type)
 
void comps_docpackage_set_basearchonly (COMPS_DocGroupPackage *pkg, int basearchonly, bool unset)
 
COMPS_Objectcomps_docpackage_get_basearchonly (COMPS_DocGroupPackage *pkg)
 

Detailed Description

COMPS_DocPackage header file.

Enumeration Type Documentation

Function Documentation

COMPS_Object* comps_docpackage_get_basearchonly ( COMPS_DocGroupPackage pkg)

return package basearchonly attrinute

Parameters
typepackage type as COMPS_PackageType
Returns
COMPS_Num basearchonly attribute
COMPS_Object* comps_docpackage_get_name ( COMPS_DocGroupPackage pkg)

COMPS_DocGroupPackage name getter

Parameters
pkgCOMPS_DocGroupPackage object
Returns
COMPS_Str object typed as COMPS_Object representating package's name with incremented reference counter
COMPS_Object* comps_docpackage_get_requires ( COMPS_DocGroupPackage pkg)

COMPS_DocGroupPackage requires getter

Parameters
pkgCOMPS_DocGroupPackage object
Returns
COMPS_Str object typed as COMPS_Object representating package's requires attribute with incremented reference counter
COMPS_Object* comps_docpackage_get_type ( COMPS_DocGroupPackage pkg)

COMPS_DocGroupPackage type getter

Parameters
pkgCOMPS_DocGroupPackage object
Returns
COMPS_Num object typed as COMPS_Object representating package's type as number with incremented reference counter
void comps_docpackage_set_basearchonly ( COMPS_DocGroupPackage pkg,
int  basearchonly,
bool  unset 
)

set package basearchonly attribute

Parameters
typepackage type as COMPS_PckageType
basearchonlybasearchonly attribute
void comps_docpackage_set_name ( COMPS_DocGroupPackage pkg,
char *  name,
char  copy 
)

COMPS_DocGroupPackage name setter

Parameters
pkgCOMPS_DocGroupPackage object
namenew name of package
copydeprecated argument

Old name object's reference counter will be decremented

void comps_docpackage_set_requires ( COMPS_DocGroupPackage pkg,
char *  requires,
char  copy 
)

COMPS_DocGroupPackage requires setter

Parameters
pkgCOMPS_DocGroupPackage object
requiresnew requries attribute value
copydeprecated argument

Old requires object's reference counter will be decremented

void comps_docpackage_set_type ( COMPS_DocGroupPackage pkg,
COMPS_PackageType  type,
bool  unset 
)

COMPS_DocGroupPackage type setter

Parameters
pkgCOMPS_DocGroupPackage object
typepackage type

old object with stored type will be decremented

void comps_docpackage_set_type_i ( COMPS_DocGroupPackage pkg,
int  type,
bool  unset 
)

COMPS_DocGroupPackage type setter same as comps_docpackage_set_type

Parameters
pkgCOMPS_DocGroupPackage object
typepackage type as integer
const char* comps_docpackage_type_str ( COMPS_PackageType  type)

return package type as string

Parameters
typepackage type as COMPS_PackageType
Returns
string representation of type