Policy API


Functions

char * oyPolicyToXML (oyGROUP group, int add_header, oyAllocFunc_t allocate_func)
int oyReadXMLPolicy (oyGROUP group, const char *xml)

Detailed Description

Functions to set and export policies in Oyranos.

Todo:
define some default policies internally

Function Documentation

char* oyPolicyToXML ( oyGROUP  group,
int  add_header,
oyAllocFunc_t  allocate_func 
)

Save a group of policy settings.
Write only such variables, which are available and ignore unknown ones. This currently produces pseudo xml configuration files.

Parameters:
group the policy group
add_header add description
allocate_func user provided function for allocating the strings memory
Returns:
the configuration as XML to save to file

int oyReadXMLPolicy ( oyGROUP  group,
const char *  xml 
)

Load a group of policy settings.
use xml-ish input produced by oyPolicyToXML()

Parameters:
group the policy group
xml xml configuration string
Returns:
errors


Generated on Sat Jun 16 21:05:41 2007 for Oyranos by  doxygen 1.5.1