TEMU  2
The Terma Emulator
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
LineDataLogger.h
Go to the documentation of this file.
1 //===------------------------------------------------------------*- C++ -*-===//
2 //
3 // T-EMU: The Terma Emulator
4 // (c) Terma 2016
5 // Authors: Mattias Holm <maho (at) terma.com>
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef TEMU_MODELS_DATALOGGER
10 #define TEMU_MODELS_DATALOGGER
11 
12 #include <stdint.h>
13 #include "temu-c/Support/Objsys.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 /* Simple interface to get recorded line data from e.g. the
20  console model. */
21 
22 typedef struct temu_LineDataLoggerIface {
23  uint64_t (*getLineCount)(void *Obj);
24  const char* (*getLine)(void *Obj, uint64_t Line);
26 #define TEMU_LINE_DATA_LOGGER_IFACE_TYPE "LineDataLoggerIface"
27 TEMU_IFACE_REFERENCE_TYPE(temu_LineDataLogger);
28 
29 
30 #ifdef __cplusplus
31 }
32 #endif
33 
34 #endif /* ! TEMU_MODELS_CONSOLE */
uint64_t(* getLineCount)(void *Obj)
struct temu_LineDataLoggerIface temu_LineDataLoggerIface
#define TEMU_IFACE_REFERENCE_TYPE(N)
Definition: Objsys.h:129