Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

PtSignalProcF_t, PtSignalProc_t

Type for defining a signal-handling function

Synopsis:

typedef int PtSignalProcF_t( int, void *);
typedef PtSignalProcF_t *PtSignalProc_t;

Description:

These data types define pointers to signal-handling functions. The PtSignalProcF_t type is the function type that the PtSignalProc_t type points to. This allows you to do something like this:

PtSignalProcF_t my_signal_proc;

int my_signal_proc( int, void * ) {
    ...
    }

The compiler should detect any inconsistencies between the two declarations of my_signal_proc() and give you an error (which is better than a “pointer mismatch” warning on the call to PtAppAddSignalProc()).

Classification:

Photon

See also:

PtAppAddSignalProc(), PtAppRemoveSignal()

Interprocess Communication in the Photon Programmer's Guide