Functions to Work with Callbacks (TutCb*)


The TutCb* functions are used to operate on callbacks, destroying them (TutCbDestroy), looking up information about them (TutCbGet*), and setting their properties (TutCbSet*). Callbacks are created using a specific callback creation routine of the form (Tipc*CbCreate).

TutCbDestroy — destroy a callback and removes it from the list

T_BOOL TutCbDestroy(cb) 
T_CB cb; 

TutCbGetArgument — determine the callback argument of the specified callback

T_BOOL TutCbGetArgument(cb, arg_return) 
T_CB cb; 
T_CB_ARG *arg_return; 

TutCbGetFunction — determine the callback function of the specified callback

T_BOOL TutCbGetFunction(cb, func_return) 
T_CB cb; 
T_CB_FUNC *func_return; 

TutCbGetPriority — determine the current priority of a callback

T_BOOL TutCbGetPriority(cb, pri_return) 
T_CB cb; 
T_CB_PRIORITY *pri_return; 

TutCbSetArgument — set the callback argument used by the specified callback

T_BOOL TutCbSetArgument(cb, arg) 
T_CB cb; 
T_CB_ARG arg; 

TutCbSetFunction — set the callback function to be called

T_BOOL TutCbSetFunction(cb, func) 
T_CB cb; 
T_CB_FUNC func; 

TutCbSetPriority — set the priority of a callback

T_BOOL TutCbSetPriority(cb, pri) 
T_CB cb; 
T_CB_PRIORITY pri; 

TIBCO SmartSockets™ API Quick Reference
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com