Default Profiles API


Functions

int oySetDefaultProfile (oyDEFAULT_PROFILE type, const char *file_name)
int oySetDefaultProfileBlock (oyDEFAULT_PROFILE type, const char *file_name, void *mem, size_t size)
char * oyGetDefaultProfileName (oyDEFAULT_PROFILE type, oyAllocFunc_t allocate_func)

Detailed Description

Functions to handle and configure default profiles.

See also:
Path Names API

Function Documentation

char* oyGetDefaultProfileName ( oyDEFAULT_PROFILE  type,
oyAllocFunc_t  allocate_func 
)

Gets a default profile filename.

Parameters:
type the kind of default profile
allocate_func the allocation function needed to reserve memory for the filename string
Returns:
filename

int oySetDefaultProfile ( oyDEFAULT_PROFILE  type,
const char *  file_name 
)

Sets a profile, which is available in the current configured path.

Parameters:
type the kind of default profile
file_name the profile which shall become the default for the above specified profile type
Returns:
success

int oySetDefaultProfileBlock ( oyDEFAULT_PROFILE  type,
const char *  file_name,
void *  mem,
size_t  size 
)

Sets a profile, which is available in the current configured path.

Parameters:
type the kind of default profile
file_name the profile which shall become the default for the above specified profile type
mem the memory containing the profile
size the profile size in mem
Returns:
success


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