Pointer to an input callback function
typedef int PtInputCallbackProcF_t( void *, pid_t, void *, size_t); typedef PtInputCallbackProcF_t *PtInputCallbackProc_t;
These data types define pointers to input callback functions. The PtInputCallbackProcF_t type is the function type that the PtInputCallbackProc_t type points to. This allows you to do something like this:
PtInputCallbackProcF_t my_input_callback; int my_input_callback( void *, pid_t, void *, size_t ) { ... }
The compiler should detect any inconsistencies between the two declarations of my_input_callback() and give you an error (which is better than a "pointer mismatch" warning on the call to PtAppAddInput()).
Photon