-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcontext.cpp
More file actions
84 lines (65 loc) · 1.79 KB
/
context.cpp
File metadata and controls
84 lines (65 loc) · 1.79 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#include "context.h"
SapXferContextWrapper SapXferContext_New() {
return new SapXferContext;
}
void SapXferContext_Delete(SapXferContextWrapper ctx) {
delete ctx;
}
void SapXferContext_SetID(SapXferContextWrapper ctx, int id) {
ctx->id = id;
return;
}
int SapXferContext_GetID(SapXferContextWrapper ctx) {
return ctx->id;
}
void SapXferContext_SetBuffer(SapXferContextWrapper ctx, SapBufferWrapper buf) {
ctx->buffer = buf;
return;
}
SapBufferWrapper SapXferContext_GetBuffer(SapXferContextWrapper ctx) {
return ctx->buffer;
}
void SapXferContext_SetHeight(SapXferContextWrapper ctx, int height) {
ctx->height = height;
return;
}
int SapXferContext_GetHeight(SapXferContextWrapper ctx) {
return ctx->height;
}
void SapXferContext_SetWidth(SapXferContextWrapper ctx, int width) {
ctx->width = width;
return;
}
int SapXferContext_GetWidth(SapXferContextWrapper ctx) {
return ctx->width;
}
void SapXferContext_SetPixelDepth(SapXferContextWrapper ctx, int depth) {
ctx->pixeldepth = depth;
return;
}
int SapXferContext_GetPixelDepth(SapXferContextWrapper ctx) {
return ctx->pixeldepth;
}
void SapXferContext_SetCounter(SapXferContextWrapper ctx, long count) {
ctx->counter = count;
return;
}
long SapXferContext_GetCounter(SapXferContextWrapper ctx) {
return ctx->counter;
}
SapXferContextWrapper SapXferCallbackInfo_GetContext(SapXferCallbackInfoWrapper cbinfo) {
return (SapXferContextWrapper)cbinfo->GetContext();
}
SapAcqContextWrapper SapAcqContext_New() {
return new SapAcqContext;
}
void SapAcqContext_Delete(SapAcqContextWrapper ctx) {
delete ctx;
}
void SapAcqContext_SetID(SapAcqContextWrapper ctx, int id) {
ctx->id = id;
return;
}
int SapAcqContext_GetID(SapAcqContextWrapper ctx) {
return ctx->id;
}