-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsymbols.ts
154 lines (154 loc) · 4.3 KB
/
symbols.ts
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
export const symbols = {
archive_read_new: {
parameters: [] as Deno.NativeType[],
result: "pointer" as Deno.NativeType, // struct archive *
},
archive_read_support_filter_all: {
parameters: [
"pointer", // struct archive *a
] as Deno.NativeType[],
result: "void" as Deno.NativeType, // not sure
},
archive_read_support_format_all: {
parameters: [
"pointer", // struct archive *a
] as Deno.NativeType[],
result: "void" as Deno.NativeType, // not sure
},
archive_read_support_format_raw: {
parameters: [
"pointer", // struct archive *a
] as Deno.NativeType[],
result: "void" as Deno.NativeType, // not sure
},
archive_read_support_compression_all: {
parameters: [
"pointer", // struct archive *a
] as Deno.NativeType[],
result: "void" as Deno.NativeType, // not sure
},
archive_read_open_filename: {
parameters: [
"pointer", // struct archive *
"pointer", // c-string path
"u32", // block-size
] as Deno.NativeType[],
result: "i8" as Deno.NativeType, // r
},
archive_read_next_header: {
parameters: [
"pointer", // struct archive *
"pointer", // struct archive_entry **
] as Deno.NativeType[],
result: "i8" as Deno.NativeType, // r
},
archive_entry_pathname: {
parameters: [
"pointer", // struct archive_entry *
] as Deno.NativeType[],
result: "pointer" as Deno.NativeType, // path c-string
},
archive_read_data_skip: {
parameters: [
"pointer", // struct archive *a
] as Deno.NativeType[],
result: "void" as Deno.NativeType, // not sure
},
archive_read_free: {
parameters: [
"pointer", // struct archive *a
] as Deno.NativeType[],
result: "i8" as Deno.NativeType, // r
},
archive_format: {
parameters: [
"pointer", // struct archive *a
] as Deno.NativeType[],
result: "i32" as Deno.NativeType, // r
},
archive_write_disk_new: {
parameters: [] as Deno.NativeType[],
result: "pointer" as Deno.NativeType, // struct archive *
},
archive_write_disk_set_options: {
parameters: [
"pointer", // struct archive *
"i32", // flags
] as Deno.NativeType[],
result: "void" as Deno.NativeType, // not sure
},
archive_write_disk_set_standard_lookup: {
parameters: [
"pointer", // struct archive *
] as Deno.NativeType[],
result: "void" as Deno.NativeType, // not sure
},
archive_write_header: {
parameters: [
"pointer", // struct archive *
"pointer", // struct archive_entry **
] as Deno.NativeType[],
result: "i8" as Deno.NativeType, // r
},
archive_write_finish_entry: {
parameters: [
"pointer", // struct archive *
] as Deno.NativeType[],
result: "i8" as Deno.NativeType, // r
},
archive_read_data_block: {
parameters: [
"pointer", // struct archive *
"pointer", // const void **
"pointer", // size_t * size
"pointer", // la_int64_t * offset
] as Deno.NativeType[],
result: "i8" as Deno.NativeType, // path c-string
},
archive_write_data_block: {
parameters: [
"pointer", // struct archive *
"pointer", // const void *
"usize", // size_t size
"u64", // la_int64_t offset
] as Deno.NativeType[],
result: "i8" as Deno.NativeType, // path c-string
},
archive_read_close: {
parameters: [
"pointer", // struct archive *
] as Deno.NativeType[],
result: "void" as Deno.NativeType, // not sure
},
archive_write_close: {
parameters: [
"pointer", // struct archive *
] as Deno.NativeType[],
result: "void" as Deno.NativeType, // not sure
},
archive_write_free: {
parameters: [
"pointer", // struct archive *
] as Deno.NativeType[],
result: "void" as Deno.NativeType, // not sure
},
archive_error_string: {
parameters: [
"pointer", // struct archive *
] as Deno.NativeType[],
result: "pointer" as Deno.NativeType, // path c-string
},
archive_entry_size: {
parameters: [
"pointer", // struct archive_entry *
] as Deno.NativeType[],
result: "usize" as Deno.NativeType, // size
},
archive_entry_set_pathname: {
parameters: [
"pointer", // struct archive_entry *
"pointer", // c-string path
] as Deno.NativeType[],
result: "void" as Deno.NativeType,
},
};