-
Notifications
You must be signed in to change notification settings - Fork 4
/
capi.c
35 lines (32 loc) · 1.13 KB
/
capi.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright 2014 <chaishushan{AT}gmail.com>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include "capi.h"
#ifdef __cplusplus
extern "C" {
# include "_cgo_export.h"
}
#else
# include "_cgo_export.h"
#endif
void initGoQmlLib() {
HookHandlers p[1];
p->hookIdleTimer = cgoHookIdleTimer;
p->hookLogHandler = cgoHookLogHandler;
p->hookGoValueReadField = cgoHookGoValueReadField;
p->hookGoValueWriteField = cgoHookGoValueWriteField;
p->hookGoValueCallMethod = cgoHookGoValueCallMethod;
p->hookGoValueDestroyed = cgoHookGoValueDestroyed;
p->hookGoValuePaint = cgoHookGoValuePaint;
p->hookRequestImage = cgoHookRequestImage;
p->hookGoValueTypeNew = cgoHookGoValueTypeNew;
p->hookWindowHidden = cgoHookWindowHidden;
p->hookSignalCall = cgoHookSignalCall;
p->hookSignalDisconnect = cgoHookSignalDisconnect;
p->hookPanic = cgoHookPanic;
p->hookListPropertyCount = cgoHookListPropertyCount;
p->hookListPropertyAt = cgoHookListPropertyAt;
p->hookListPropertyAppend = cgoHookListPropertyAppend;
p->hookListPropertyClear = cgoHookListPropertyClear;
initHooks(p);
}