OpenICC-Configuration-API - Version 0.1.0
Macros | Enumerations | Functions
Path Names

Access to data path names for Installation. More...

Macros

#define openiccSCOPE_OPENICC   0x04
 
#define openiccSCOPE_MACHINE   0x08
 

Enumerations

enum  openiccPATH_TYPE_e { , openiccPATH_ICC = 0x01, openiccPATH_POLICY = 0x02, openiccPATH_MODULE = 0x04 }
 data type selectors More...
 
enum  openiccSCOPE_e { openiccSCOPE_USER_SYS = 0x0, openiccSCOPE_USER = 0x01, openiccSCOPE_SYSTEM = 0x02 }
 Select Scope for Installation or Configurations. More...
 

Functions

char * openiccGetInstallPath (openiccPATH_TYPE_e type, openiccSCOPE_e scope, openiccAlloc_f allocFunc)
 get Path Name for Installation More...
 

Detailed Description

Access to data path names for Installation.

The obtained informations can be used outside OpenICC, to do system specific operations, which do not easily fit into the library.

Macro Definition Documentation

#define openiccSCOPE_MACHINE   0x08

use machine data scope

Examples:
test.c.

Referenced by openiccGetInstallPath().

#define openiccSCOPE_OPENICC   0x04

use OpenICC installation data scope

Examples:
test.c.

Referenced by openiccGetInstallPath().

Enumeration Type Documentation

data type selectors

Enumerator
openiccPATH_ICC 

ICC profile path

openiccPATH_POLICY 

policy data

openiccPATH_MODULE 

module data

Select Scope for Installation or Configurations.

Enumerator
openiccSCOPE_USER_SYS 

do not limit search to one scope

openiccSCOPE_USER 

use user data scope

openiccSCOPE_SYSTEM 

use system data scope

Examples:
test.c.

Function Documentation

char * openiccGetInstallPath ( openiccPATH_TYPE_e  type,
openiccSCOPE_e  scope,
openiccAlloc_f  allocFunc 
)

get Path Name for Installation

Note: Not all combinations return a path name. Some make no sense. So be careful and test the result.

openiccPATH_MODULE + openiccSCOPE_USER and openiccPATH_MODULE + openiccSCOPE_OPENICC are supported.

Version
OpenICC: 0.1.0
Date
2015/08/28
Since
2015/02/08 (OpenICC: 0.1.0)
Examples:
test.c.

References openiccPATH_ICC, openiccPATH_MODULE, openiccPATH_POLICY, openiccSCOPE_MACHINE, openiccSCOPE_OPENICC, openiccSCOPE_SYSTEM, and openiccSCOPE_USER.