![]() |
Oyranos Colour Management System API |
custom object handler More...
#include <oyranos_cmm.h>
Public Types | |
| typedef oyStruct_s *(* | oyCMMobjectLoadFromMem_f )(size_t buf_size, const oyPointer buf, uint32_t flags, oyObject_s object) |
| load a filter object from a in memory data blob | |
| typedef const char *(* | oyCMMobjectGetText_f )(oyStruct_s *object, oyNAME_e type, int flags) |
| build a text string from a given object | |
| typedef int(* | oyCMMobjectScan_f )(oyPointer data, size_t size, char **registration, char **name, oyAlloc_f allocateFunc) |
| load a filter object from a in memory data blob | |
Data Fields | |
| oyOBJECT_e | type |
| oyPointer | dummya |
| oyPointer | dummyb |
| oyPointer | dummyc |
| oyOBJECT_e | id |
| const char * | paths |
| const char *(* | pathsGet )() |
| const char * | exts |
| const char * | element_name |
| oyCMMobjectGetText_f | oyCMMobjectGetText |
| oyCMMobjectLoadFromMem_f | oyCMMobjectLoadFromMem |
| oyCMMobjectScan_f | oyCMMobjectScan |
custom object handler
| oyPointer oyCMMobjectType_s::dummya |
keep to zero
| oyPointer oyCMMobjectType_s::dummyb |
keep to zero
| oyPointer oyCMMobjectType_s::dummyc |
keep to zero
| const char* oyCMMobjectType_s::element_name |
XML element name, e.g. "profile"
| const char* oyCMMobjectType_s::exts |
file extensions, e.g. "icc:icm"
| oyOBJECT_e oyCMMobjectType_s::id |
object type id, set to a object type known to Oyranos, or set as a unique four byte signature, like 'myID' just more unique to avoid collisions. The id shall match a the oyStruct_s::type_ member generated through oyCMMobjectLoadFromMem_f.
| const char* oyCMMobjectType_s::paths |
a colon separated list of sub paths to expect the data in, e.g. "color/icc"
| const char*(* oyCMMobjectType_s::pathsGet)() |
e.g. non XDG colon separated paths
| oyOBJECT_e oyCMMobjectType_s::type |
struct type oyOBJECT_CMM_DATA_TYPES_S