![]() |
Oyranos
git-devel
Oyranos is a full featured Color Management System
|
#include <oyranos_core.h>
Macros | |
#define | oyOBJECT_MAX_CUSTOM 1024 |
#define | oyOBJECT_MAX_STRUCT 300 |
#define | OY_SELECT_FILTER 2048 |
select from filter More... | |
#define | OY_SELECT_COMMON 4096 |
select from policy More... | |
#define | OY_MATCH_SUB_STRING 0x100 |
#define | OY_SYNTAX_SKIP_REG 0x200 |
#define | OY_SYNTAX_SKIP_PATTERN 0x400 |
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... | |
typedef struct oyObject_s_ * | oyObject_s |
Functions | |
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... | |
const char * | oyGetKeyFromRegistration (const char *registration) |
get oyFILTER_REG_MAX from registration string More... | |
int | oyFilterStringMatch (const char *registration, const char *pattern, oyOBJECT_e api_number, char path_separator, char key_separator, int flags) |
analyse string and compare with a given pattern More... | |
[Template file inheritance graph] +– oyranos_object.template.h
Oyranos is an open source Color Management System
#define OY_MATCH_SUB_STRING 0x100 |
#define OY_SYNTAX_SKIP_PATTERN 0x400 |
avoid "-,_,+" syntax checking in search patterns
#define OY_SYNTAX_SKIP_REG 0x200 |
avoid "-,_,+" syntax checking in registration strings
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
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 Backend Modules overview. The function is intensively used.
registration | registration string to analise |
pattern | pattern or key name to compare with |
api_number | select object type |
References oyFilterStringMatch().
Referenced by l2cmsMOptions_Handle(), l2cmsMOptions_Handle2(), l2cmsMOptions_Handle3(), and l2cmsMOptions_Handle4().
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 Backend Modules 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 |
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.
int oyFilterStringMatch | ( | const char * | registration, |
const char * | pattern, | ||
oyOBJECT_e | api_number, | ||
char | path_separator, | ||
char | key_separator, | ||
int | flags | ||
) |
analyse string and compare with a given pattern
The rules are described in the Backend Modules overview. This version is configurable
registration | registration string to analise |
pattern | pattern or key name to compare with |
api_number | select object type |
path_separator | a char to split into hierarchical levels |
key_separator | a char to split key strings |
flags | options:
|
Referenced by oyFilterRegistrationMatch().
const char* oyGetKeyFromRegistration | ( | const char * | registration | ) |
get oyFILTER_REG_MAX from registration string
Function oyGetKeyFromRegistration This function is similar to oyFilterRegistrationToText() .
registration | registration string to analyse |
References OY_SLASH_C.