Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptinputcallbackproc_t.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptinputcallbackproc_t.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptinputcallbackproc_t.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptinputcallbackproc_t.html on line 8

PtInputCallbackProcF_t, PtInputCallbackProc_t

Type for defining an input callback function

Synopsis:

typedef int PtInputCallbackProcF_t( void *, int,
                                    void *,
                                    size_t);
typedef PtInputCallbackProcF_t *
           PtInputCallbackProc_t;

Description:

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 *, int, 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()).

Classification:

Photon

See also:

PtAppAddInput()

Interprocess Communication chapter of the Photon Programmer's Guide


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptinputcallbackproc_t.html on line 88

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptinputcallbackproc_t.html on line 88