mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
802 B
C
26 lines
802 B
C
/**
|
|
*
|
|
* \section COPYRIGHT
|
|
*
|
|
* Copyright 2013-2021 Software Radio Systems Limited
|
|
*
|
|
* By using this file, you agree to the terms and conditions set
|
|
* forth in the LICENSE file which can be found at the top level of
|
|
* the distribution.
|
|
*
|
|
*/
|
|
|
|
#ifndef SRSRAN_EMERGENCY_HANDLERS_H
|
|
#define SRSRAN_EMERGENCY_HANDLERS_H
|
|
|
|
using emergency_cleanup_callback = void (*)(void*);
|
|
|
|
// Add a cleanup function to be called when a kill signal is about to be delivered to the process. The handler may
|
|
// optionally pass a pointer to identify what instance of the handler is being called.
|
|
void add_emergency_cleanup_handler(emergency_cleanup_callback callback, void* data);
|
|
|
|
// Executes all registered emergency cleanup handlers.
|
|
void execute_emergency_cleanup_handlers();
|
|
|
|
#endif // SRSRAN_EMERGENCY_HANDLERS_H
|