DataSource for C SDK
8.0.3.290770-7760911e
|
Definition of the interface that you should implement if you require custom subject matching logic. More...
Data Fields | |
char *(* | describe )(ds5_namespace_t *nspace, char *buf, size_t buflen) |
Describes the contents of the namespace. More... | |
void(* | free )(ds5_namespace_t *nspace) |
Invoked when the namespace should be deleted. More... | |
int(* | match )(ds5_namespace_t *nspace, const char *subject) |
Tests a subject to see if it falls within this namespace. More... | |
Definition of the interface that you should implement if you require custom subject matching logic.
char*(* _ds5_namespace_s::describe) (ds5_namespace_t *nspace, char *buf, size_t buflen) |
Describes the contents of the namespace.
nspace | - A reference to the namespace |
buf | - Buffer to fill with the description. |
buflen | - Size of the buffer |
void(* _ds5_namespace_s::free) (ds5_namespace_t *nspace) |
Invoked when the namespace should be deleted.
nspace | - The namespace to be deleted. |
For example, a namespace will be deleted when a broadcast ds5_subscription_t is no longer rquired.
int(* _ds5_namespace_s::match) (ds5_namespace_t *nspace, const char *subject) |
Tests a subject to see if it falls within this namespace.
nspace | - A reference to the namespace. |
subject | - The subject to be tested for matching. |
0 | - The subject matches. |
!0 | - the subject doesn't match. |