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

Go to the source code of this file.

Data Structures

struct  GblModuleClass
 
struct  GblModule
 

Macros

#define GBL_REQUIRE(...)
 
Type System

Type UUID and cast operators

#define GBL_MODULE_TYPE
 
#define GBL_MODULE(self)
 
#define GBL_MODULE_CLASS(klass)
 
#define GBL_MODULE_GET_CLASS(self)
 

Typedefs

typedef GblBool(* GblModuleIterFn) (GblModule *pIt, void *pClosure)
 

Detailed Description

GblModule loadable plugin instance and management API.

Todo:
  • advanced unit testing
  • plan out type registration/management
  • rig up option group parsery
  • stop inheriting GblContext
Author
2023 Falco Girgis

Definition in file gimbal_module.h.

Macro Definition Documentation

◆ GBL_MODULE_TYPE

#define GBL_MODULE_TYPE

Type UUID for GblModule.

Definition at line 25 of file gimbal_module.h.

◆ GBL_MODULE

#define GBL_MODULE (   self)

Function-style GblInstance cast.

Definition at line 26 of file gimbal_module.h.

◆ GBL_MODULE_CLASS

#define GBL_MODULE_CLASS (   klass)

Function-style GblClass cast.

Definition at line 27 of file gimbal_module.h.

◆ GBL_MODULE_GET_CLASS

#define GBL_MODULE_GET_CLASS (   self)

Gets a GblModuleClass from GblInstance.

Definition at line 28 of file gimbal_module.h.

◆ GBL_REQUIRE

#define GBL_REQUIRE (   ...)

Returns the module for the given type.

Definition at line 31 of file gimbal_module.h.

Typedef Documentation

◆ GblModuleIterFn

typedef GblBool(* GblModuleIterFn) (GblModule *pIt, void *pClosure)

Function callback used with GblModule_foreach() for iterating over active modules.

Definition at line 41 of file gimbal_module.h.