TutTimeChangeCbLookup look up a time change callback
func
time change callback function to be looked up
arg
argument to be passed to the callback function
Returns pointer to callback if successful, NULL
otherwise.
None
TutTimeChangeCbLookup looks up a time change callback based on func
and arg
. It returns the callback that exists using the specified callback function and argument.
None
TutTimeChangeCbCreate, TutSetCurrentTime, TutSetCurrentTimeStruct
This example creates a time change callback and then looks it up to verify that the function is working properly:
void T_ENTRY time_change_cb(dummy, data, arg) T_PTR dummy;/* not used */
T_TIME_CHANGE_CB_DATA data; T_PTR arg; { TutOut("Data time is: %d.%06d\n", data->time->sec, data->time->usec); } T_CB created_cb; T_CB found_cb; created_cb = TutTimeChangeCbCreate(time_change_cb, NULL); if (created_cb == NULL) {/* error */
} found_cb = TutTimeChangeCbLookup(time_change_cb, NULL); if (found_cb != created_cb) {/* error */
}
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |