Oyranos Color Management System API
Functions
oyranos_module.c File Reference
#include "oyranos_debug.h"
#include "oyranos_i18n.h"
#include "oyranos_io.h"
#include "oyranos_internal.h"
#include "oyranos_object_internal.h"
#include "oyranos_types.h"
#include "oyranos_generic_internal.h"
#include "oyranos_module_internal.h"
#include "oyObject_s.h"
#include "oyCMMapi3_s.h"
#include "oyCMMapi4_s_.h"
#include "oyCMMapi5_s.h"
#include "oyCMMapi6_s.h"
#include "oyCMMapi9_s.h"
#include "oyCMMapi10_s_.h"
#include "oyCMMapiFilter_s_.h"
#include "oyCMMapiFilters_s.h"
#include "oyCMMapiFilters_s_.h"
#include "oyCMMapis_s.h"
#include "oyOptions_s_.h"
#include "oyStructList_s_.h"
#include <ltdl.h>

Functions

size_t oyDataTypeGetSize (oyDATATYPE_e data_type)
 oyDATATYPE_e to byte mapping More...
 
const char * oyDataTypeToText (oyDATATYPE_e data_type)
 oyDATATYPE_e to string mapping More...
 
int oyOptions_Handle (const char *registration, oyOptions_s *options, const char *command, oyOptions_s **result)
 Handle a request by a module. More...
 
char oyFilterRegistrationModify (const char *registration, oyFILTER_REG_MODE_e mode, char **result, oyAlloc_f allocateFunc)
 process a registration string More...
 

Detailed Description

[Template file inheritance graph] +– oyranos_module.template.c

Oyranos is an open source Color Management System

Copyright:
2004-2014 (C) Kai-Uwe Behrmann
Author
Kai-Uwe Behrmann ku.b@.nosp@m.gmx..nosp@m.de
License:
new BSD - see: http://www.opensource.org/licenses/bsd-license.php
Date
2014/02/25

Function Documentation

◆ oyFilterRegistrationModify()

char oyFilterRegistrationModify ( const char *  registration,
oyFILTER_REG_MODE_e  mode,
char **  result,
oyAlloc_f  allocateFunc 
)

process a registration string

A semantical overview is given in module_api.

Parameters
[in]registrationregistration key
[in]modethe processing rule
[out]resultallocated by allocateFunc
[in]allocateFuncoptional user allocator; defaults to oyAllocateFunc_
Returns
0 - good; >= 1 - error; < 0 issue
Version
Oyranos: 0.1.11
Since
2010/08/12 (Oyranos: 0.1.11)
Date
2010/08/12

References OY_SLASH, OY_SLASH_C, and oyFILTER_REG_MODE_STRIP_IMPLEMENTATION_ATTR.

◆ oyOptions_Handle()

int oyOptions_Handle ( const char *  registration,
oyOptions_s options,
const char *  command,
oyOptions_s **  result 
)

Handle a request by a module.

Parameters
[in]registrationthe module selector
[in]optionsoptions
[in]commandthe command to handle
[out]resultoptions to the policy module
Returns
0 - indifferent, >= 1 - error, <= -1 - issue,
  • a message should be sent
Version
Oyranos: 0.9.0
Date
2012/10/25
Since
2009/12/11 (Oyranos: 0.1.10)

References oyOBJECT_OPTIONS_S.