Definition of the interface that you should implement if you require custom subject matching logic.
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.
- Parameters
-
nspace | - A reference to the namespace |
buf | - Buffer to fill with the description. |
buflen | - Size of the buffer |
- Returns
- Should return buf
Invoked when the namespace should be deleted.
- Parameters
-
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.
- Parameters
-
nspace | - A reference to the namespace. |
subject | - The subject to be tested for matching. |
- Return values
-
0 | - The subject matches. |
!0 | - the subject doesn't match. |
The documentation for this struct was generated from the following file: