T-EMU  2
The Terma Emulator
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Macros | Typedefs | Functions
Events.h File Reference
#include <stdint.h>
#include "temu-c/Support/Objsys.h"
Include dependency graph for Events.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  temu_EventIface
 

Macros

#define TEMU_EVENT_NS   (1U << 0)
 
#define TEMU_EVENT_SYNC   (1U << 8)
 

Typedefs

typedef void(* temu_TimerCb )(void *Sender, void *Data)
 
typedef void(* temu_ThreadSafeCb )(void *)
 

Functions

void * temu_allocateEventQueue (void)
 
void temu_disposeEventQueue (void *Queue)
 
int64_t temu_triggerFirstTimer (void *Queue, uint32_t Flags)
 
int64_t temu_triggerCurrentTimers (void *Queue, int64_t Srt, uint32_t Flags)
 
int64_t temu_nextTimer (void *Queue, uint32_t Flags)
 
void temu_postEvent (void *Queue, temu_TimerCb callback, void *Sender, void *Data, uint64_t Time, uint32_t Flags)
 
void temu_stackEvent (void *Queue, temu_TimerCb callback, void *Sender, void *Data, uint32_t Flags)
 
int64_t temu_eventTime (void *Queue, temu_TimerCb callback, void *Sender)
 
void temu_descheduleEvent (void *Queue, temu_TimerCb callback, void *Sender)
 
void temu_postCallbackInQueue (void *Queue, temu_ThreadSafeCb Cb, void *Arg)
 
 TEMU_IFACE_REFERENCE_TYPE (temu_Event)
 
void temu_registerEvent (void *Queue, const char *Name, temu_TimerCb Callback, uint32_t Flags)
 
void temu_serialiseEvents (void *Obj, void *Ctxt)
 
void temu_deserialiseEvents (void *Obj, void *Ctxt)
 

Macro Definition Documentation

#define TEMU_EVENT_NS   (1U << 0)

Definition at line 19 of file Events.h.

#define TEMU_EVENT_SYNC   (1U << 8)

Definition at line 20 of file Events.h.

Typedef Documentation

typedef void(* temu_ThreadSafeCb)(void *)

Definition at line 49 of file Events.h.

typedef void(* temu_TimerCb)(void *Sender, void *Data)

Definition at line 22 of file Events.h.

Function Documentation

void* temu_allocateEventQueue ( void  )
void temu_descheduleEvent ( void *  Queue,
temu_TimerCb  callback,
void *  Sender 
)
void temu_deserialiseEvents ( void *  Obj,
void *  Ctxt 
)
void temu_disposeEventQueue ( void *  Queue)
int64_t temu_eventTime ( void *  Queue,
temu_TimerCb  callback,
void *  Sender 
)
TEMU_IFACE_REFERENCE_TYPE ( temu_Event  )
int64_t temu_nextTimer ( void *  Queue,
uint32_t  Flags 
)
void temu_postCallbackInQueue ( void *  Queue,
temu_ThreadSafeCb  Cb,
void *  Arg 
)
void temu_postEvent ( void *  Queue,
temu_TimerCb  callback,
void *  Sender,
void *  Data,
uint64_t  Time,
uint32_t  Flags 
)
void temu_registerEvent ( void *  Queue,
const char *  Name,
temu_TimerCb  Callback,
uint32_t  Flags 
)
void temu_serialiseEvents ( void *  Obj,
void *  Ctxt 
)
void temu_stackEvent ( void *  Queue,
temu_TimerCb  callback,
void *  Sender,
void *  Data,
uint32_t  Flags 
)
int64_t temu_triggerCurrentTimers ( void *  Queue,
int64_t  Srt,
uint32_t  Flags 
)
int64_t temu_triggerFirstTimer ( void *  Queue,
uint32_t  Flags 
)