libElysianVMU 1.6.0
Full-featured, accurate, cross-platform library emulating the Dreamcast's Visual Memory Unit
Loading...
Searching...
No Matches
evmu_device.h File Reference

Go to the source code of this file.

Data Structures

struct  EvmuDeviceClass
 
struct  EvmuDevice
 

Macros

Type System

Type UUID and cast operators

#define EVMU_DEVICE_TYPE   (GBL_TYPEID(EvmuDevice))
 
#define EVMU_DEVICE(self)   (GBL_CAST(EvmuDevice, self))
 
#define EVMU_DEVICE_CLASS(klass)   (GBL_CLASS_CAST(EvmuDevice, klass))
 
#define EVMU_DEVICE_GET_CLASS(self)   (GBL_CLASSOF(EvmuDevice, self))
 

Functions

GblType EvmuDevice_type (void)
 
EvmuDeviceEvmuDevice_create (void)
 
EvmuDeviceEvmuDevice_ref (const EvmuDevice *pSelf)
 
GblRefCount EvmuDevice_unref (EvmuDevice *pSelf)
 

Detailed Description

EvmuDevice top-level emulated entity.

EvmuDevice encompasses everything that a single Visual Memory Unit/System entails, emulating the Sanyo Potato IC.

Author
2023 Falco Girgis

Definition in file evmu_device.h.

Macro Definition Documentation

◆ EVMU_DEVICE

#define EVMU_DEVICE (   self)    (GBL_CAST(EvmuDevice, self))

Cast GblInstance to EvmuDevice.

Definition at line 35 of file evmu_device.h.

◆ EVMU_DEVICE_CLASS

#define EVMU_DEVICE_CLASS (   klass)    (GBL_CLASS_CAST(EvmuDevice, klass))

Cast GblClass to EvmuDeviceClass.

Definition at line 36 of file evmu_device.h.

◆ EVMU_DEVICE_GET_CLASS

#define EVMU_DEVICE_GET_CLASS (   self)    (GBL_CLASSOF(EvmuDevice, self))

Get EvmuDeviceClass from GblInstance

Definition at line 37 of file evmu_device.h.

◆ EVMU_DEVICE_TYPE

#define EVMU_DEVICE_TYPE   (GBL_TYPEID(EvmuDevice))

UUID for the EvmuDevice type.

Definition at line 34 of file evmu_device.h.

Function Documentation

◆ EvmuDevice_create()

EvmuDevice * EvmuDevice_create ( void  )

Creates an EvmuDevice instance and returns a pointer to it.

◆ EvmuDevice_ref()

EvmuDevice * EvmuDevice_ref ( const EvmuDevice pSelf)

Increments the reference counter for the given device, returning a pointer to it.

◆ EvmuDevice_type()

GblType EvmuDevice_type ( void  )

Returns the GblType UUID associated with EvmuDevice.

◆ EvmuDevice_unref()

GblRefCount EvmuDevice_unref ( EvmuDevice pSelf)

Decrements and returns the reference count of the given EvmuDevice, destructing it at 0.