ekg2  GIT master
Definicje | Funkcje | Zmienne
Dokumentacja pliku abort.c
#include "abort.h"
#include <stddef.h>
Wykres zależności załączania dla abort.c:

Definicje

#define NUM_ABORT_HANDLERS   10
 

Funkcje

int ekg2_register_abort_handler (abort_handler handler, plugin_t *plugin)
 
void ekg2_run_all_abort_handlers (void)
 
int ekg2_unregister_abort_handlers_for_plugin (plugin_t *plugin)
 

Zmienne

struct {
   abort_handler   handler
 
   plugin_t *   plugin
 
abort_handlers [10]
 

Dokumentacja definicji

◆ NUM_ABORT_HANDLERS

#define NUM_ABORT_HANDLERS   10

Dokumentacja funkcji

◆ ekg2_register_abort_handler()

int ekg2_register_abort_handler ( abort_handler  handler,
plugin_t plugin 
)

Statically register the abort handler function for the plugin.

The handler MUST be async-signal-safe (see signal(7)).

Zwraca
1 if successful, 0 if there was no space left.

◆ ekg2_run_all_abort_handlers()

void ekg2_run_all_abort_handlers ( void  )

Run all registered abort handlers (possibly none).

No particular order of invocation is guaranteed.

◆ ekg2_unregister_abort_handlers_for_plugin()

int ekg2_unregister_abort_handlers_for_plugin ( plugin_t plugin)

Unregister all abort handlers for plugin.

Zwraca
the number of unregistered handlers.

Dokumentacja zmiennych

◆ abort_handlers

struct { ... } abort_handlers[ 10 ]

◆ handler

abort_handler handler

◆ plugin