Path Names API


Functions

int oyPathsCount (void)
char * oyPathName (int number, oyAllocFunc_t allocate_func)
int oyPathAdd (const char *pathname)
void oyPathRemove (const char *pathname)
char * oyGetPathFromProfileName (const char *profile_name, oyAllocFunc_t allocate_func)

Detailed Description

Functions to handle path configuration for Oyranos.

Paths include operating system standard paths. For linux these are:

Paths are scanned recursively excluding symbolic links.

See also:
Profile Lists API

Function Documentation

char* oyGetPathFromProfileName ( const char *  profile_name,
oyAllocFunc_t  allocate_func 
)

Find out where in the Oyranos search path the specified profile resides.

Parameters:
profile_name the filename find in the Oyranos search path
allocate_func user provided function for allocating the string memory
Returns:
the path name where the profile was found in the oyranos search path

int oyPathAdd ( const char *  pathname  ) 

Add a path name statically to allready configured ones.

Parameters:
pathname new pathname to use by Oyranos for profile search
Returns:
success

char* oyPathName ( int  number,
oyAllocFunc_t  allocate_func 
)

Get the path name at a certain position in the Oyranos search path list.

Parameters:
number number in list - dont rely on through sessions
allocate_func user provided function for allocating the string memory
Returns:
the pathname at position number

void oyPathRemove ( const char *  pathname  ) 

Remove a path name statically from the list of configured ones.

Parameters:
pathname the pathname to remove from the Oyranos search path list

int oyPathsCount ( void   ) 

Determin the count of configured search paths.


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