libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
gimbal_signal_closure.h File Reference

Go to the source code of this file.

Data Structures

struct  GblSignalClosureClass
 
struct  GblSignalClosure
 

Macros

#define GBL_SIGNAL_CLOSURE_TYPE
 
#define GBL_SIGNAL_CLOSURE(self)
 
#define GBL_SIGNAL_CLOSURE_CLASS(klass)
 
#define GBL_SIGNAL_CLOSURE_GET_CLASS(self)
 

Functions

GblType GblSignalClosure_type (void)
 
GblSignalClosureGblSignalClosure_create (const char *pSignalName, void *pUserdata)
 

Detailed Description

GblSignalClosure, signal-emitting closurure, and API.

This file contains the GblSignalClosure type and its associated methods. It is used to forward a generic function invocation to a signal emission, which can then be received again by any GblClosure instances connected to the signal.

Author
2023 Falco Girgis

Definition in file gimbal_signal_closure.h.

Macro Definition Documentation

◆ GBL_SIGNAL_CLOSURE_TYPE

#define GBL_SIGNAL_CLOSURE_TYPE

Definition at line 18 of file gimbal_signal_closure.h.

◆ GBL_SIGNAL_CLOSURE

#define GBL_SIGNAL_CLOSURE (   self)

Definition at line 20 of file gimbal_signal_closure.h.

◆ GBL_SIGNAL_CLOSURE_CLASS

#define GBL_SIGNAL_CLOSURE_CLASS (   klass)

Definition at line 21 of file gimbal_signal_closure.h.

◆ GBL_SIGNAL_CLOSURE_GET_CLASS

#define GBL_SIGNAL_CLOSURE_GET_CLASS (   self)

Definition at line 22 of file gimbal_signal_closure.h.

Function Documentation

◆ GblSignalClosure_type()

GblType GblSignalClosure_type ( void  )

Returns the GblType UUID associated with GblSignalClosure.

◆ GblSignalClosure_create()

GblSignalClosure * GblSignalClosure_create ( const char *  pSignalName,
void *  pUserdata 
)

Creates a new GblSignalClosure, with the given pSignalName, capturing the given pUserdata.