source: cpp/frams/frams-objects.h @ 1123

Last change on this file since 1123 was 1123, checked in by Maciej Komosinski, 3 years ago

Added a header file for interfacing the frams-objects library (.dll and .so) from C/C++

File size: 1.0 KB
RevLine 
[1123]1// Generated from frams/frams-objects.cpp
2// A header file for the frams-objects library (.dll and .so)
3
4#ifndef _FRAMS_OBJECTS_H_
5#define _FRAMS_OBJECTS_H_
6
7#ifdef _WIN32
8#define EXPORTED __declspec(dllimport)
9#else
10#define EXPORTED extern
11#endif
12
13EXPORTED void init(int argc, char* argv[]);
14EXPORTED void extFree(void* e);
15EXPORTED int extType(void* e);
16EXPORTED void* extFromNull();
17EXPORTED void* extFromInt(int v);
18EXPORTED void* extFromDouble(double v);
19EXPORTED void* extFromString(char* v);
20EXPORTED int extIntValue(void *v);
21EXPORTED double extDoubleValue(void *v);
22EXPORTED char* extStringValue(void *v);
23EXPORTED char* extClass(void* v);
24EXPORTED int extPropCount(void *v);
25EXPORTED char* extPropId(void *v, int i);
26EXPORTED char* extPropType(void *v, int i);
27EXPORTED int extPropFind(void *v, char* id);
28EXPORTED void* extPropGet(void *v, int i);
29EXPORTED int extPropSet(void *v, int i, void* e);
30EXPORTED void* extPropCall(void *v, int i, int argc, void* argv);
31EXPORTED void* rootObject();
32
33#endif
Note: See TracBrowser for help on using the repository browser.