mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
0d3c9954f4
The eventname handling code was splattered all over the place. Collect it in a single source file and use C++ idioms to avoid nasty memory management. Provide a C-only interface, however. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
21 lines
480 B
C
21 lines
480 B
C
// collect all event names and whether we display events of that type
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef EVENTNAME_H
|
|
#define EVENTNAME_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern void clear_event_names(void);
|
|
extern void remember_event_name(const char *eventname);
|
|
extern bool is_event_hidden(const char *eventname);
|
|
extern void hide_event(const char *eventname);
|
|
extern void show_all_events();
|
|
extern bool any_events_hidden();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|