Transformer SDK For C
6.2.9.307380
|
Functions | |
int | deregister_interest (const char *name, update_cb update, int id, void *data) |
Deregister an interest in a particular group of symbols. More... | |
int | deregister_type_interest (int typ, update_cb update, int id, void *data) |
Deregister an interest in a particular DataSource type. More... | |
int | register_interest (const char *name, update_cb update, int id, void *data) |
Register an interest in a particular group of symbols. More... | |
int | register_interest_check (const char *name, update_cb update, int id, void *data) |
Register an interest in a particular group of symbols checking the provider if necessary. More... | |
int | register_type_interest (int typ, update_cb update, int id, void *data) |
Register an interest in a particular DataSource type. More... | |
The old Transformer API is still supported, but we recommend that any new development use the new listener API instead of the legacy equivalents.
int deregister_interest | ( | const char * | name, |
update_cb | update, | ||
int | id, | ||
void * | data | ||
) |
Deregister an interest in a particular group of symbols.
Deregister interest in symbols. The symbolname may contain wildcard characters. This function scans the symbols present within the Transformer that match the specified symbolname and then deregisters the modules interest in them.
If a symbol has no module interested in it, and no peer has requested the object and the symbol has come from an active DataSource then it will be deleted from the Transformer and a DataSource discard message sent to the originating peer.
If the symbolname is wild then the placeholder for future registrations of symbols is removed.
name | Name or wildcard to deregister an interest in |
update | Function to callback when an update for the symbol(s) is received (to match) |
id | User defined integer (to match) |
data | User defined pointer (to match) |
int deregister_type_interest | ( | int | typ, |
update_cb | update, | ||
int | id, | ||
void * | data | ||
) |
Deregister an interest in a particular DataSource type.
Deregister an interest in symbols with a particular DataSource type.
typ | - DataSource type to remove interested in |
update | - Callback function to match when removing interest |
id | - User defined integer (to match) |
data | - User defined pointer (to match) |
0 | - Always |
int register_interest | ( | const char * | name, |
update_cb | update, | ||
int | id, | ||
void * | data | ||
) |
Register an interest in a particular group of symbols.
API functions below this point Register interest in symbols. If the symbol has not been received by the Transformer then if the name parameter contains a wildcard character (* or ?) then the Transformer will wait for a symbol to exist before registering the interest. Otherwise it will request the symbol from its peers
name | Name or wildcard to request an interest in |
update | Function to callback when an update for the symbol(s) is received |
id | User defined integer |
data | User defined pointer |
If wildcard is requested:
0 | - No symbols matched, but wildcard registered for the future |
If an individual object is requested:
1 | - Object from datasource registered |
0 | - Object from provider registered |
int register_interest_check | ( | const char * | name, |
update_cb | update, | ||
int | id, | ||
void * | data | ||
) |
Register an interest in a particular group of symbols checking the provider if necessary.
Register interest in symbols. If the symbol has not been received by the Transformer then if the name parameter contains a wildcard character (* or ?) then the Transformer will wait for a symbol to exist before registering the interest. Otherwise it will request the symbol from its peers
name | Name or wildcard to request an interest in |
update | Function to callback when an update for the symbol(s) is received |
id | User defined integer |
data | User defined pointer |
If wildcard is requested:
0 | - No symbols matched, but wildcard registered for the future |
If an individual object is requested:
1 | - Object from datasource registered |
0 | - Object from provider registered |
int register_type_interest | ( | int | typ, |
update_cb | update, | ||
int | id, | ||
void * | data | ||
) |
Register an interest in a particular DataSource type.
Register an interest in symbols with a particular DataSource type. All future updates with the specified type will be propagated through to the requesting module.
typ | - DataSource type to be interested in |
update | - Function to callback when an update for the symbol(s) is received |
id | - User defined integer |
data | - User defined pointer |
0 | - Type registration succeeded |
-1 | - Type registration failed (out of memory) |