TEMU  3.0
The Terma Emulator
DynamicInvocation.h
Go to the documentation of this file.
1 //===------------------------------------------------------------*- C++ -*-===//
2 //
3 // TEMU: The Terma Emulator
4 // (c) Terma 2015
5 // Authors: Mattias Holm <maho (at) terma.com>
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef TEMU_DYNAMIC_INVOCATION_H
10 #define TEMU_DYNAMIC_INVOCATION_H
11 
13 #include "temu-c/Support/Objsys.h"
14 #include <stdbool.h>
15 #include <stdint.h>
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 #define TEMU_DYN_CALL_IFACE_NAME "DynamicInvocationIface"
22 
23 typedef struct {
24  temu_Propval (*call)(temu_Object *Obj, const char *cmd, int posArgc,
25  temu_CmdArg positionalArgs[]);
26 
27  bool (*hasCommand)(temu_Object *Obj, const char *cmd);
28  temu_Type (*getArgType)(temu_Object *Obj, const char *cmdName,
29  const char *argName);
31 #define TEMU_DYN_CALL_IFACE_TYPE "DynCallIface"
32 TEMU_IFACE_REFERENCE_TYPE(temu_DynCall);
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif /* ! TEMU_DYNAMIC_INVOCATION_H */
Definition: DynamicInvocation.h:23
temu_Type
Definition: Objsys.h:282
Definition: Objsys.h:82
struct temu_Propval temu_Propval
TEMU_IFACE_REFERENCE_TYPE(temu_DynCall)
Definition: CommandLine.h:74