Transformer SDK For C  8.0.2.290852-a608fcd3
_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.

The documentation for this struct was generated from the following file:

Generated on Wed Jul 31 2024 18:00:14 for Transformer SDK For C