File dp_interrupt.h¶
File List > inc > dp_interrupt.h
Go to the documentation of this file
#ifndef DP_INTERRUPT_H
#define DP_INTERRUPT_H
#include "clib_common.h"
#include <signal.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C"
{
#endif
#define DP_INTERRUPT_LATENCY_DEFAULT_MS 100u
#define DP_INTERRUPT_MAX_SIGNALS 8u
void dp_interrupt (void);
void dp_resume (void);
int dp_interrupted (void);
void dp_set_interrupt_latency_ms (unsigned ms);
unsigned dp_interrupt_latency_ms (void);
int dp_interrupt_on_signal (int sig);
int dp_restore_signal (int sig);
#ifdef __cplusplus
}
#endif
#endif /* DP_INTERRUPT_H */