DataSource for C SDK  8.0.4.341990-53978ef8
_ds5_namespace_s Struct Reference

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...
 

Detailed Description

Definition of the interface that you should implement if you require custom subject matching logic.

Field Documentation

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
void(* _ds5_namespace_s::free) (ds5_namespace_t *nspace)

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.

Generated on Wed Dec 4 2024 14:56:20 for DataSource for C SDK