Oyranos  0.9.7
Oyranos is a full featured Color Management System
Functions
oyranos_core.c File Reference

public Oyranos API's More...

#include "oyranos_core.h"
#include <sys/stat.h>
#include "oyranos_config_internal.h"
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "oyranos_debug.h"
#include "oyranos_helper.h"
#include "oyranos_internal.h"
#include "oyranos_icc.h"
#include "oyranos_io.h"
#include "oyranos_sentinel.h"
#include "oyranos_string.h"
#include "oyranos_texts.h"
#include "oyStruct_s.h"
#include "oyObject_s_.h"
#include "oyName_s_.h"
#include "oyArray2d_s_.h"
#include "oyRectangle_s_.h"
#include "config.log.h"

Functions

int oyObject_GetId (oyObject_s object)
 get the identification number of a object More...
 
OYAPI const char *OYEXPORT oyObject_Show (oyObject_s object)
 Print object informations. More...
 
int oyMessageFormat (char **message_text, int code, const void *context_object, 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)
 
void oyObjectDebugMessage_ (void *object, const char *function_name OY_UNUSED, const char *struct_name)
 
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...
 
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...
 
icUInt16Number oyValueUInt16 (icUInt16Number val)
 convert to network byte order on little endian machines More...
 
icUInt32Number oyValueUInt32 (icUInt32Number val)
 convert to network byte order More...
 
icS15Fixed16Number oyValueInt32 (icS15Fixed16Number val)
 convert to network byte order More...
 
unsigned long oyValueUInt64 (icUInt64Number val)
 convert to network byte order More...
 

Detailed Description

public Oyranos API's

Oyranos is an open source Color Management System

Copyright:
2004-2016 (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

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)
void oyObjectDebugMessage_ ( void *  object,
const char *function_name  OY_UNUSED,
const char *  struct_name 
)

Function oyObjectDebugMessage_

References oy_debug, and OY_DEBUG_OBJECTS.

Referenced by oyArray2d_s::oyArray2d_Copy(), oyBlob_s::oyBlob_Copy(), oyCMMapi4_s::oyCMMapi4_Copy(), oyCMMapi7_s::oyCMMapi7_Copy(), oyCMMapi_s::oyCMMapi_Copy(), oyCMMapiFilter_s::oyCMMapiFilter_Copy(), oyCMMapiFilters_s::oyCMMapiFilters_Copy(), oyCMMapis_s::oyCMMapis_Copy(), oyCMMui_s::oyCMMui_Copy(), oyConfig_s::oyConfig_Copy(), oyConfigs_s::oyConfigs_Copy(), oyConnector_s::oyConnector_Copy(), oyConnectorImaging_s::oyConnectorImaging_Copy(), oyConversion_s::oyConversion_Copy(), oyFilterCore_s::oyFilterCore_Copy(), oyFilterGraph_s::oyFilterGraph_Copy(), oyFilterNode_s::oyFilterNode_Connect(), oyFilterNode_s::oyFilterNode_Copy(), oyFilterNode_s::oyFilterNode_GetData(), oyFilterNode_s::oyFilterNode_SetData(), oyFilterNode_s::oyFilterNode_ShowConnector(), oyFilterNodes_s::oyFilterNodes_Copy(), oyFilterPlug_s::oyFilterPlug_Copy(), oyFilterPlugs_s::oyFilterPlugs_Copy(), oyFilterSocket_s::oyFilterSocket_Copy(), oyFilterSocket_s::oyFilterSocket_GetData(), oyFilterSocket_s::oyFilterSocket_SetData(), oyHash_s::oyHash_Copy(), oyImage_s::oyImage_Copy(), oyImage_s::oyImage_Create(), oyNamedColor_s::oyNamedColor_Copy(), oyNamedColors_s::oyNamedColors_Copy(), oyOption_s::oyOption_Copy(), oyOption_s::oyOption_GetStruct(), oyOptions_s::oyOptions_Copy(), oyOptions_s::oyOptions_GetType2(), oyPixelAccess_s::oyPixelAccess_Copy(), oyPixelAccess_s::oyPixelAccess_GetUserData(), oyPixelAccess_s::oyPixelAccess_SetUserData(), oyPointer_s::oyPointer_Copy(), oyProfile_s::oyProfile_Copy(), oyProfiles_s::oyProfiles_Copy(), oyProfileTag_s::oyProfileTag_Copy(), oyRectangle_s::oyRectangle_Copy(), oyObserver_s::oyStruct_ObserverAdd(), oyStructList_s::oyStructList_Copy(), and oyStructList_s::oyStructList_CopyFrom().