[Tickit-dev] Return values for Tickit callback functions

Ross Mohn rpmohn at waxandwane.org
Mon Dec 6 13:51:31 GMT 2021


Answering my own question, the return code is not used, at least at this 
time :-)

     static void invoke_watch(TickitWatch *watch, TickitEventFlags 
flags, void *info)
     {
       (*watch->fn)(watch->t, flags, info, watch->user);
     ...



On 12/3/21 3:06 PM, Ross Mohn wrote:
> The callback functions in libtickit all have a declared return type of 
> int, and I see the examples mostly return 1, sometimes 0. I didn't 
> find documentation of the use of these return values, though I might 
> have just missed it. Are theses return values used and, if so, what 
> are their meanings?
>
>
> $ grep "typedef.*Fn(" /usr/local/include/tickit.h
> typedef int TickitPenEventFn(TickitPen *tt, TickitEventFlags flags, 
> void *info, void *user);
> typedef int TickitTermEventFn(TickitTerm *tt, TickitEventFlags flags, 
> void *info, void *user);
> typedef int TickitWindowEventFn(TickitWindow *win, TickitEventFlags 
> flags, void *info, void *user);
> typedef int TickitCallbackFn(Tickit *t, TickitEventFlags flags, void 
> *info, void *user);
>
> Thanks -Ross




More information about the Tickit-dev mailing list