pysignals.h 342 B

1234567891011121314151617181920
  1. /* signal interface */
  2. #ifndef Py_PYSIGNALS_H
  3. #define Py_PYSIGNALS_H
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef void (*PyOS_sighandler_t)(int);
  8. PyAPI_FUNC(PyOS_sighandler_t) PyOS_setsig(int sig, PyOS_sighandler_t handler);
  9. PyAPI_FUNC(PyOS_sighandler_t) PyOS_getsig(int sig);
  10. #ifdef __cplusplus
  11. }
  12. #endif
  13. #endif /* !Py_PYSIGNALS_H */