Oyranos  git-devel
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 "oyOption_s_.h"
#include "config.log.h"
#include "oyranos_git_version.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 oyStringAddPrintf (char **string, oyAlloc_f alloc, oyDeAlloc_f deAlloc, const char *format,...)
 Append a string and handle memory. More...
 
char ** oyStringSplit (const char *text, const char delimiter, int *count, oyAlloc_f allocateFunc)
 Create a array of strings. More...
 
void oyStringListRelease (char ***l, int size, oyDeAlloc_f deallocFunc)
 Release a array of strings. More...
 
char * oyStringCopy (const char *text, oyAlloc_f allocateFunc)
 Copy with allocator. More...
 
int oyVersion (int type)
 give the compiled in library version More...
 
const char * oyVersionString (int type)
 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...
 
uint16_t oyByteSwapUInt16 (uint16_t v)
 swap byte order More...
 
uint32_t oyByteSwapUInt32 (uint32_t v)
 swap byte order More...
 

Detailed Description

public Oyranos API's

Oyranos is an open source Color Management System

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

◆ oyMessageFormat()

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

◆ 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

◆ oyMessageFuncSet()

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)

◆ oyObjectDebugMessage_()

void oyObjectDebugMessage_ ( void *  object,
const char *function_name  OY_UNUSED,
const char *  struct_name 
)

Function oyObjectDebugMessage_