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

Go to the source code of this file.

Data Structures

struct  GblInterface
 

Macros

#define GBL_INTERFACE_TYPE
 

Functions

GblClassGblInterface_outerClass (GblInterface *pSelf)
 
GblClassGblInterface_outerMostClass (GblInterface *pSelf)
 

Detailed Description

GblInterface and related functions.

Author
Falco Girgis

Definition in file gimbal_interface.h.

Function Documentation

◆ GblInterface_outerClass()

GblInterface_outerClass ( GblInterface pSelf)

Returns the GblClass implementing the given interface.

Note
If the specified interface is a default implementation, its own GblClass base is returned.
Parameters
pSelfinterface
Returns
GblClass pointer to the implementing class.
See also
GblClass_outerMost

◆ GblInterface_outerMostClass()

GblClass * GblInterface_outerMostClass ( GblInterface pSelf)

Returns the top-level GblClass implementing the interface.

The top-level class will either be its outer class, in the case of a regular embedded interface, or it could be multiple levels out, in the case of an interface mapping an interface.

Parameters
pSelfinterface
Returns
GblClass pointer to the top-most implementing class.
See also
GblClass_as