TEMU
4.4
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
12
#
include
"temu-c/Support/CommandLine.h"
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
);
30
} temu_DynCallIface;
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 */
temu_DynCallIface::getArgType
temu_Type(* getArgType)(temu_Object *Obj, const char *cmdName, const char *argName)
Definition:
DynamicInvocation.h:28
temu_DynCallIface::hasCommand
bool(* hasCommand)(temu_Object *Obj, const char *cmd)
Definition:
DynamicInvocation.h:27
temu_DynCallIface::call
temu_Propval(* call)(temu_Object *Obj, const char *cmd, int posArgc, temu_CmdArg positionalArgs[])
Definition:
DynamicInvocation.h:24
temu-c
Bus
DynamicInvocation.h
Generated by
1.8.17