![]() |
Oyranos Color Management System API |
#include <oyranos_core.h>
Macros | |
#define | OY_SELECT_FILTER 2048 |
select from filter More... | |
#define | OY_SELECT_COMMON 4096 |
select from policySelect typical from a associatable oyCMMapi9_s type of filter for providing common options. More... | |
Typedefs | |
typedef int(* | oyPointer_release_f) (oyPointer *) |
oyPointer_s release function type More... | |
typedef void(* | oyLockRelease_f) (oyPointer lock, const char *marker, int line) |
Lock release function type. More... | |
typedef void(* | oyLock_f) (oyPointer lock, const char *marker, int line) |
Lock function type. More... | |
typedef void(* | oyUnLock_f) (oyPointer look, const char *marker, int line) |
Unlock function type. More... | |
Functions | |
const char * | oyStructTypeToText (oyOBJECT_e type) |
Objects type to small string. More... | |
char * | oyFilterRegistrationToText (const char *registration, oyFILTER_REG_e type, oyAlloc_f allocateFunc) |
analyse registration string More... | |
int | oyFilterRegistrationMatch (const char *registration, const char *pattern, oyOBJECT_e api_number) |
analyse registration string and compare with a given pattern More... | |
int | oyFilterRegistrationMatchKey (const char *registration1, const char *registration2, oyOBJECT_e api_number) |
compare two registration strings, skip key attributes More... | |
[Template file inheritance graph] +– oyranos_object.template.h
Oyranos is an open source Color Management System
typedef void(* oyLock_f) (oyPointer lock, const char *marker, int line) |
Lock function type.
typedef void(* oyLockRelease_f) (oyPointer lock, const char *marker, int line) |
Lock release function type.
typedef int(* oyPointer_release_f) (oyPointer *) |
oyPointer_s release function type
typedef void(* oyUnLock_f) (oyPointer look, const char *marker, int line) |
Unlock function type.
enum oyBOOLEAN_e |
boolean operations
enum oyERROR_e |
int oyFilterRegistrationMatch | ( | const char * | registration, |
const char * | pattern, | ||
oyOBJECT_e | api_number | ||
) |
analyse registration string and compare with a given pattern
Function oyFilterRegistrationMatch The rules are described in the module_api overview. The function is intensively used.
registration | registration string to analise |
pattern | pattern or key name to compare with |
api_number | select object type |
Referenced by oyFilterGraph_s::oyFilterGraph_CountNodes(), oyFilterGraph_s::oyFilterGraph_GetNode(), oyFilterNode_s::oyFilterNode_ConnectorMatch(), oyFilterNode_s::oyFilterNode_GetConnectorPos(), oyFilterRegistrationMatchKey(), oyOptions_s::oyOptions_CopyFrom(), oyOptions_s::oyOptions_CountType(), oyOptions_s::oyOptions_Filter(), oyOptions_s::oyOptions_Find(), oyOptions_s::oyOptions_GetType(), and oyOptions_s::oyOptions_SetDriverContext().
int oyFilterRegistrationMatchKey | ( | const char * | registration_a, |
const char * | registration_b, | ||
oyOBJECT_e | api_number | ||
) |
compare two registration strings, skip key attributes
Function oyFilterRegistrationMatchKey The rules are described in the module_api overview. The rules in this function map especially to key storage rules for Oyranos DB.
The non key part is handled as namespace and should match in order to consider the two keys from the same namespace. The second condition is the key name is stripped from all attributes. This means the string part after the last slash '/' is taken into account only until the first point '.' or end of string appears.
registration_a | registration key |
registration_b | registration key |
api_number | select object type |
References oyFILTER_REG_OPTION, oyFilterRegistrationMatch(), and oyFilterRegistrationToText().
Referenced by oyOptions_s::oyOptions_Set().
char* oyFilterRegistrationToText | ( | const char * | registration, |
oyFILTER_REG_e | fields, | ||
oyAlloc_f | allocateFunc | ||
) |
analyse registration string
Function oyFilterRegistrationToText
registration | registration string to analyse | |
[in] | fields | kind of answere in return |
[in] | allocateFunc | use this or Oyranos standard allocator |
For several oyFILTER_REG bits we compose a new registration string.
References oyFILTER_REG_APPLICATION, oyFILTER_REG_DOMAIN, oyFILTER_REG_OPTION, oyFILTER_REG_TOP, and oyFILTER_REG_TYPE.
Referenced by oyConfig_s::oyConfig_Compare(), oyConversion_s::oyConversion_Correct(), oyFilterNode_s::oyFilterNode_ConnectorMatch(), oyFilterNode_s::oyFilterNode_GetUi(), oyFilterRegistrationMatchKey(), oyOptions_s::oyOptions_Add(), oyOptions_s::oyOptions_CopyFrom(), oyOptions_s::oyOptions_DoFilter(), oyOptions_s::oyOptions_ForFilter_(), oyOptions_s::oyOptions_FromBoolean(), oyOptions_s::oyOptions_SaveToDB(), and oyProfile_s::oyProfile_AddDevice().
const char* oyStructTypeToText | ( | oyOBJECT_e | type | ) |
Objects type to small string.
Function oyStructTypeToText Give a basic description of inbuild object types.
Referenced by oyFilterPlug_s::oyFilterPlug_ConnectIntoSocket().