-
Notifications
You must be signed in to change notification settings - Fork 0
/
upipe-control-args.lua
39 lines (33 loc) · 1.52 KB
/
upipe-control-args.lua
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
local ffi = require "ffi"
local C = ffi.C
return {
-- global commands
[C.UPIPE_GET_URI] = { "const char **" },
[C.UPIPE_SET_URI] = { "const char *" },
[C.UPIPE_GET_OPTION] = { "const char *", "const char **" },
[C.UPIPE_SET_OPTION] = { "const char *", "const char *" },
-- input commands
[C.UPIPE_REGISTER_REQUEST] = { "struct urequest *" },
[C.UPIPE_UNREGISTER_REQUEST] = { "struct urequest *" },
[C.UPIPE_SET_FLOW_DEF] = { "struct uref *" },
[C.UPIPE_GET_MAX_LENGTH] = { "unsigned int *" },
[C.UPIPE_SET_MAX_LENGTH] = { "unsigned int" },
-- output commands
[C.UPIPE_GET_OUTPUT] = { "struct upipe **" },
[C.UPIPE_SET_OUTPUT] = { "struct upipe *" },
[C.UPIPE_GET_FLOW_DEF] = { "struct uref **" },
[C.UPIPE_GET_OUTPUT_SIZE] = { "unsigned int *" },
[C.UPIPE_SET_OUTPUT_SIZE] = { "unsigned int" },
-- split elements commands
[C.UPIPE_SPLIT_ITERATE] = { "struct uref **" },
-- sub/super pipes commands
[C.UPIPE_GET_SUB_MGR] = { "struct upipe_mgr **" },
[C.UPIPE_ITERATE_SUB] = { "struct upipe **" },
[C.UPIPE_SUB_GET_SUPER] = { "struct upipe **" },
-- source commands
[C.UPIPE_SRC_GET_SIZE] = { "uint64_t *" },
[C.UPIPE_SRC_GET_POSITION] = { "uint64_t *" },
[C.UPIPE_SRC_SET_POSITION] = { "uint64_t" },
[C.UPIPE_SRC_GET_RANGE] = { "uint64_t", "uint64_t" },
[C.UPIPE_SRC_SET_RANGE] = { "uint64_t", "uint64_t" },
}