Transformer SDK For C
6.2.11.309924
|
Data Structures | |
struct | _ds5_namespace_s |
Definition of the interface that you should implement if you require custom subject matching logic. More... | |
Macros | |
#define | ds5_namespace_free(nspace) nspace->free(nspace) |
A convenience macro for invoking the ds5_namespace_t::delete() function on a namespace. More... | |
#define | ds5_namespace_match(nspace, subject) nspace->match(nspace, subject) |
A convenience macro for invoking the ds5_namespace_t::match() function on a namespace. More... | |
Typedefs | |
typedef struct _ds5_namespace_s | ds5_namespace_t |
Typedef to the definition of the interface for defining DataSource namespaces. More... | |
Functions | |
ds5_namespace_t * | tf_create_globbed_namespace (const char *globbed) |
Creates a DataSource namespace which will match subject names using globbing. More... | |
ds5_namespace_t * | tf_create_regex_namespace (const char *expr) |
Creates a DataSource namespace which will match subject names using a regular expression. More... | |
int | tf_regex_namespace_add_expr (ds5_namespace_t *nspace, const char *expr, int exclude) |
Adds a regular expression to a namespace. More... | |
#define ds5_namespace_free | ( | nspace | ) | nspace->free(nspace) |
A convenience macro for invoking the ds5_namespace_t::delete() function on a namespace.
nspace | - The namespace to be deleted. |
#define ds5_namespace_match | ( | nspace, | |
subject | |||
) | nspace->match(nspace, subject) |
A convenience macro for invoking the ds5_namespace_t::match() function on a namespace.
nspace | - The namespace. |
subject | - The subject to match. |
0 | - The subject matches. |
!0 | - The subject does not match. |
typedef struct _ds5_namespace_s ds5_namespace_t |
Typedef to the definition of the interface for defining DataSource namespaces.
ds5_namespace_t* tf_create_globbed_namespace | ( | const char * | globbed | ) |
Creates a DataSource namespace which will match subject names using globbing.
globbed | - The glob pattern to match against. |
ds5_namespace_t* tf_create_regex_namespace | ( | const char * | expr | ) |
Creates a DataSource namespace which will match subject names using a regular expression.
expr | - Regular expression |
int tf_regex_namespace_add_expr | ( | ds5_namespace_t * | nspace, |
const char * | expr, | ||
int | exclude | ||
) |
Adds a regular expression to a namespace.
nspace | - The Regex namespace to add the regular expression to |
expr | - The regular expression to add |
exclude | - Zero if expr should be a match, non-zero if not |
0 | - Successfully added |
-1 | - Invalid expression |
-2 | - nspace is not a regular expression namespace |