Oyranos Colour Management System API

Miscellaneous

Functions

void oyI18NSet (int active, int reserved)
 switch internationalisation of strings on or off
const char * oyLanguage (void)
 get language code
const char * oyCountry (void)
 get country code
const char * oyLang (void)
 get LANG code/variable
void oyI18Nreset (void)
 reset i18n language and country variables
int oyVersion (int type)
 give the compiled in library version
char * oyVersionString (int type, oyAlloc_f allocateFunc)
 give the configure options for Oyranos
int oyProfileGetMD5 (void *buffer, size_t size, unsigned char *md5_return)
 calculate a md5 digest beginning after the header offset

Detailed Description

Miscellaneous stuff.


Function Documentation

const char* oyCountry ( void   ) 

get country code

Since:
Oyranos: version 0.1.8
Date:
26 november 2007 (API 0.1.8)
void oyI18Nreset ( void   ) 

reset i18n language and country variables

Version:
Oyranos: 0.1.10
Since:
2009/01/05 (Oyranos: 0.1.10)
Date:
2009/01/05
void oyI18NSet ( int  active,
int  reserved 
)

switch internationalisation of strings on or off

Parameters:
active bool
reserved for future use
const char* oyLang ( void   ) 

get LANG code/variable

Since:
Oyranos: version 0.1.8
Date:
26 november 2007 (API 0.1.8)
const char* oyLanguage ( void   ) 

get language code

Since:
Oyranos: version 0.1.8
Date:
26 november 2007 (API 0.1.8)
int oyProfileGetMD5 ( void *  buffer,
size_t  size,
unsigned char *  md5_return 
)

calculate a md5 digest beginning after the header offset

The md5 implementation is written by L. Peter Deutsch

Parameters:
[in] buffer complete profiles buffer
[in] size over all profile size
[out] md5_return buffer to write in the md5 digest (128 bytes)
Returns:
error
int oyVersion ( int  type  ) 

give the compiled in library version

Parameters:
[in] type 0 - Oyranos API 1 - start month 2 - start year 3 - development last month 4 - development last year
Returns:
OYRANOS_VERSION at library compile time

Referenced by oyVersionString().

char* oyVersionString ( int  type,
oyAlloc_f  allocateFunc 
)

give the configure options for Oyranos

Parameters:
[in] type 
  • 1 OYRANOS_VERSION_NAME;
  • 2 git master hash;
  • 3 OYRANOS_CONFIG_DATE,
  • 4 development period
allocateFunc user allocator, e.g. malloc
Returns:
Oyranos configure output
Since:
Oyranos: version 0.1.8
Date:
18 december 2007 (API 0.1.8)

References oyVersion().