TutTimeChangeCbCreate create a time change callback
func
time change callback function to be called
arg
argument to be passed to the callback function
Returns pointer to created callback. NULL
is returned if callback could not be created.
None
TutTimeChangeCbCreate creates a time change callback that is called whenever the value of data time changes. The value of data time is changed with the functions TutSetCurrentTime and TutSetCurrentTimeStruct. Whenever the value of time is changed, func
is called with arg
as the callback argument.
None
TutTimeChangeCbLookup, TutSetCurrentTime, TutSetCurrentTimeStruct
This example creates a time change callback to print the value of time when it changes:
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); } if (TutTimeChangeCbCreate(time_change_cb, NULL) == NULL) {/* error */
}
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |