Oyranos Colour Management System API
Public Types | Data Fields
oyCMMapi5_s Struct Reference

module or script loader More...

#include <oyranos_cmm.h>

Inheritance diagram for oyCMMapi5_s:
Inheritance graph
[legend]
Collaboration diagram for oyCMMapi5_s:
Collaboration graph
[legend]

Public Types

typedef int(* oyCMMFilterSocket_MatchPlug_f )(oyFilterSocket_s *socket, oyFilterPlug_s *plug)
 verify connectors matching each other
typedef oyOptions_s *(* oyCMMFilter_ValidateOptions_f )(oyFilterCore_s *filter, oyOptions_s *validate, int statical, uint32_t *result)
 a function to check and validate options
typedef oyCMMapiFilter_s *(* oyCMMFilterLoad_f )(oyPointer data, size_t size, const char *file_name, oyOBJECT_e type, int num)
 load a filter from a in memory data blob
typedef int(* oyCMMFilterScan_f )(oyPointer data, size_t size, const char *file_name, oyOBJECT_e type, int num, char **registration, char **name, oyAlloc_f allocateFunc, oyCMMInfo_s **info, oyObject_s object)
 load a filter from a in memory data blob

Data Fields

oyOBJECT_e type
oyPointer dummya
oyPointer dummyb
oyPointer dummyc
oyCMMapi_snext
oyCMMInit_f oyCMMInit
oyCMMMessageFuncSet_f oyCMMMessageFuncSet
const char * registration
int32_t version [3]
int32_t module_api [3]
const char * sub_paths
const char * ext
int32_t data_type
oyCMMFilterLoad_f oyCMMFilterLoad
oyCMMFilterScan_f oyCMMFilterScan

Detailed Description

module or script loader

Filters can be provided in non library form, e.g. as text files. This API allowes for registring of paths and file types to be recognised as filters. The API must provide the means to search, list, verify and open these script filters through Oyranos. The filters are opened in Oyranos and passed as blobs to the API function for obtaining light wight informations, e.g. list the scanned filters in a user selection widget. Further the API is responsible to open the filter and create a oyFilter_s object.

Version:
Oyranos: 0.1.10
Since:
2008/11/22 (Oyranos: 0.1.9)
Date:
2010/06/25

Field Documentation

0: libs - libraries, Oyranos searches in the XDG_LIBRARY_PATH and sub_paths, The library will be provided as file_name
1: scripts - platform independent filters, Oyranos will search in the XDG_DATA_* paths, Script are provided as i memory blobs

keep to zero

Reimplemented from oyCMMapi_s.

keep to zero

Reimplemented from oyCMMapi_s.

keep to zero

Reimplemented from oyCMMapi_s.

const char* oyCMMapi5_s::ext

optional filename extensions, e.g. "shi:ctl"

0: last major Oyranos version during development time, e.g. 0 1: last minor Oyranos version during development time, e.g. 0 2: last Oyranos patch version during development time, e.g. 10

Reimplemented from oyCMMapi_s.

the next CMM api

Reimplemented from oyCMMapi_s.

Reimplemented from oyCMMapi_s.

Reimplemented from oyCMMapi_s.

e.g. "sw/oyranos.org/colour.tonemap.imaging/hydra.shiva" or "sw/oyranos.org/colour/icc", see as well Registration

Reimplemented from oyCMMapi_s.

a colon separated list of sub paths to expect the scripts in, e.g. "color/shiva:color/octl"

oyOBJECT_e oyCMMapi5_s::type

struct type oyOBJECT_CMM_API5_S

Reimplemented from oyCMMapi_s.

0: major - should be stable for the live time of a filter,
1: minor - mark new features,
2: patch version - correct errors

Reimplemented from oyCMMapi_s.