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

Go to the source code of this file.

Macros

#define GBL_SIGNALS(instanceStruct, ...)
 
#define GBL_SIGNALS_REGISTER(instanceStruct, ...)
 
#define GBL_EMIT(emitter, ...)
 
#define GBL_CONNECT(...)
 
#define GblSignal_connect(...)
 

Functions

GBL_RESULT GblSignal_install (GblType ownerType, const char *pName, GblMarshalFn pFnCMarshal, size_t argCount,...)
 
GBL_RESULT GblSignal_uninstall (GblType ownerType, const char *pName)
 
GBL_RESULT GblSignal_uninstallAll (GblType ownerType)
 
GBL_RESULT GblSignal_connect (GblInstance *pEmitter, const char *pSignalName, GblInstance *pReceiver, GblFnPtr pFnCCallback, void *pUserdata)
 
GBL_RESULT GblSignal_connectClass (GblInstance *pEmitter, const char *pSignalName, GblInstance *pReceiver, GblType classType, size_t methodOffset)
 
GBL_RESULT GblSignal_connectSignal (GblInstance *pEmitter, const char *pSignalName, GblInstance *pDstEmitter, const char *pDstSignalName)
 
GBL_RESULT GblSignal_connectClosure (GblInstance *pEmitter, const char *pSignalName, GblInstance *pReceiver, GblClosure *pClosure)
 
size_t GblSignal_disconnect (GblInstance *pEmitter, const char *pSignalName, GblInstance *pReceiver, GblClosure *pClosure)
 
GblBool GblSignal_block (GblInstance *pInstance, const char *pSignalName, GblBool blocked)
 
GblBool GblSignal_blockAll (GblInstance *pInstance, GblBool blocked)
 
size_t GblSignal_connectionCount (GblInstance *pInstance, const char *pSignalName)
 
GBL_RESULT GblSignal_emit (GblInstance *pEmitter, const char *pSignalName,...)
 
GBL_RESULT GblSignal_emitVaList (GblInstance *pEmitter, const char *pSignalName, va_list *pVarArgs)
 
GBL_RESULT GblSignal_emitVariants (GblInstance *pEmitter, const char *pSignalName, GblVariant *pArgs)
 
GblInstanceGblSignal_emitter (void)
 
GblInstanceGblSignal_receiver (void)
 

Detailed Description

Signals, connections, and related API.

Author
Falco Girgis
Todo:
  • GBL_SIGNALS() DSL
  • GblSignal_next() for iteration
  • GblSignal_uninstallAll(GblType type)

Definition in file gimbal_signal.h.

Macro Definition Documentation

◆ GBL_SIGNALS

#define GBL_SIGNALS (   instanceStruct,
  ... 
)

Definition at line 21 of file gimbal_signal.h.

◆ GBL_SIGNALS_REGISTER

#define GBL_SIGNALS_REGISTER (   instanceStruct,
  ... 
)

Definition at line 22 of file gimbal_signal.h.

◆ GBL_EMIT

#define GBL_EMIT (   emitter,
  ... 
)

Definition at line 23 of file gimbal_signal.h.

◆ GBL_CONNECT

#define GBL_CONNECT (   ...)

Definition at line 24 of file gimbal_signal.h.

◆ GblSignal_connect

#define GblSignal_connect (   ...)

Definition at line 92 of file gimbal_signal.h.