Oyranos  0.9.7
Oyranos is a full featured Color Management System
Enumerations | Functions | Variables
oyranos_core.h File Reference

public Oyranos API's More...

#include <stdarg.h>
#include "oyranos_version.h"
#include "oyranos_types.h"

Enumerations

Functions

int oyMessageFormat (char **message_text, int code, const void *context, const char *string)
 default function to form a message string More...
 
int oyMessageFunc (int code, const void *context_object, const char *format,...)
 default message function to console More...
 
int oyMessageFuncSet (oyMessage_f message_func)
 
int oyVersion (int type)
 give the compiled in library version More...
 
char * oyVersionString (int type, oyAlloc_f allocateFunc)
 give the configure options for Oyranos More...
 
void oyI18NSet (int active, int reserved)
 switch internationalisation of strings on or off More...
 
const char * oyLanguage (void)
 get language code More...
 
const char * oyCountry (void)
 get country code More...
 
const char * oyLang (void)
 get LANG code/variable More...
 
void oyI18Nreset (void)
 reset i18n language and country variables More...
 

Variables

int oy_debug
 Set debug level. More...
 
const char * oy_domain_codeset
 codeset for Oyranos More...
 

Detailed Description

public Oyranos API's

Oyranos is an open source Color Management System

Copyright:
2004-2011 (C) Kai-Uwe Behrmann
Author
Kai-Uwe Behrmann ku.b@.nosp@m.gmx..nosp@m.de
License:
new BSD http://www.opensource.org/licenses/BSD-3-Clause
Since
2004/11/25

Function Documentation

int oyMessageFormat ( char **  message_text,
int  code,
const void *  context_object,
const char *  string 
)

default function to form a message string

Function oyMessageFormat This default message function is used as a message formatter. The resulting string can be placed anywhere, e.g. in a GUI.

See also
the oyMessageFunc() needs just to replace the fprintf with your favourite GUI call.
Version
Oyranos: 0.2.1
Since
2008/04/03 (Oyranos: 0.2.1)
Date
2011/01/15

References oyStruct_s::oy_, oy_debug, oyNAME_NAME, oyObject_GetId(), oyStruct_s::oyStruct_GetInfo(), oyStruct_s::oyStructTypeToText(), and oyStruct_s::type_.

Referenced by oyMessageFunc().

int oyMessageFunc ( int  code,
const void *  context_object,
const char *  format,
  ... 
)

default message function to console

Function oyMessageFunc The default message function is used as a message printer to the console from library start.

Parameters
codea message code understood be your message handler or oyMSG_e
context_objecta oyStruct_s is expected from Oyranos
formatthe text format string for following args
...the variable args fitting to format
Returns
0 - success; 1 - error
Version
Oyranos: 0.3.0
Since
2008/04/03 (Oyranos: 0.1.8)
Date
2009/07/20
Examples:
oyranos_cmm_oJPG.c.

References oyStruct_s::oy_, oy_debug, oyMessageFormat(), oyObject_GetId(), oyStruct_s::oyStructTypeToText(), and oyStruct_s::type_.

int oyMessageFuncSet ( oyMessage_f  message_func)

Function oyMessageFuncSet

Version
Oyranos: 0.1.8
Date
2008/04/03
Since
2008/04/03 (Oyranos: 0.1.8)

Variable Documentation

int oy_debug

Set debug level.

Variable oy_debug

Version
Oyranos: 0.0.1
Date
2005/02/01
Since
2005/02/01 (Oyranos: 0.0.1)
Examples:
image_display.cpp, and oyranos_cmm_oJPG.c.

Referenced by Config_Rank(), Configs_FromPattern(), Configs_Modify(), l2cmsAddProfile(), l2cmsAddProofProfile(), l2cmsCMMConversionContextCreate_(), l2cmsCMMData_Open(), l2cmsCMMProfile_GetWrap_(), l2cmsFilterNode_CmmIccContextToMem(), l2cmsFilterPlug_CmmIccRun(), l2cmsGamutCheckAbstract(), l2cmsModuleData_Convert(), l2cmsTransformWrap_Set_(), lcm2AbstractWhitePoint(), lcmsAddProofProfile(), lcmsCMMConversionContextCreate_(), lcmsFilterNode_CmmIccContextToMem(), lcmsGamutCheckAbstract(), lcmsMOptions_Handle2(), lcmsTransformWrap_Set_(), lrawFilterPlug_ImageInputRAWRun(), oiccChangeNodeOption(), ojpgApi7CmmCreate(), ojpgFilter_CmmRun(), oyArray2d_s::oyArray2d_SetFocus(), oyCMMapi7_s::oyCMMapi7_Create(), oyConfig_s::oyConfig_Match(), oyConfigs_s::oyConfigDomainList(), oyConversion_s::oyConversion_RunPixels(), oyDeviceSetup(), oyDevicesFromTaxiDB(), oydiFilterNode_ImageDisplayContextToMem(), oydiFilterPlug_ImageDisplayRun(), oyFilterGraph_s::oyFilterGraph_ToText(), oyFilterNode_s::oyFilterNode_Run(), oyGetCMMs(), oyImage_s::oyImage_FillArray(), oyImage_s::oyImage_GetArray2dLineContinous(), oyImage_s::oyImage_ReadArray(), oyImage_s::oyImage_SetCritical(), oyIMProfileTag_GetValues(), oyJob_Add_(), oyMAT3toCIExyYTriple(), oyMessageFormat(), oyMessageFunc(), oyObjectDebugMessage_(), oyPixelAccess_s::oyPixelAccess_SetArrayFocus(), oyPixelAccess_s::oyPixelAccess_SynchroniseROI(), oyPointer_s::oyPointer_LookUpFromObject(), oyProfile_s::oyProfile_FromFile(), oyraFilter_ImageChannelRun(), oyraFilter_ImageExposeRun(), oyraFilterPlug_ImageRectanglesRun(), oyraGetSaturationLine_(), oyConfig_s::oyRankMapList(), and oyThreadCreate().