Gooey GUI Library
Loading...
Searching...
No Matches
gooey_signals.h
Go to the documentation of this file.
1#ifndef GOOEY_SIGNALS_H
2#define GOOEY_SIGNALS_H
3
4#include "utils/logger/gooey_logger_internal.h"
5
6/* ============ Signaling system ==============*/
7
8typedef void (*GooeySignal_CallbackFunction)(void *context, void *data);
9
16
17typedef struct
18{
21
31
43
53void GooeySignal_Emit(GooeySignal *signal, void *data);
54
64
65#endif
void(* GooeySignal_CallbackFunction)(void *context, void *data)
Definition gooey_signals.h:8
void GooeySignal_Link(GooeySignal *signal, GooeySignal_CallbackFunction callback, void *context)
Links a callback function to a signal.
GooeySignal GooeySignal_Create(void)
Creates a new signal object.
void GooeySignal_Emit(GooeySignal *signal, void *data)
Emits a signal.
void GooeySignal_UnLinkAll(GooeySignal *signal)
Unlinks all callbacks from a signal.
Definition gooey_signals.h:11
GooeySignal_CallbackFunction callback
Definition gooey_signals.h:12
struct GooeySignal_Slot * next
Definition gooey_signals.h:14
void * context
Definition gooey_signals.h:13
Definition gooey_signals.h:18
GooeySignal_Slot * slots
Definition gooey_signals.h:19