1// Code generated by pipewiregen. DO NOT EDIT.
2
3package capi
4
5import "github.com/bnema/purego"
6
7import "unsafe"
8
9
10// pw_loop_newFunc is the function type for pw_loop_new.
11type pw_loop_newFunc func(props unsafe.Pointer) unsafe.Pointer
12
13// pw_loop_destroyFunc is the function type for pw_loop_destroy.
14type pw_loop_destroyFunc func(loop unsafe.Pointer)
15
16// pw_loop_get_fdFunc is the function type for pw_loop_get_fd.
17type pw_loop_get_fdFunc func(loop unsafe.Pointer) int32
18
19// pw_loop_enterFunc is the function type for pw_loop_enter.
20type pw_loop_enterFunc func(loop unsafe.Pointer)
21
22// pw_loop_leaveFunc is the function type for pw_loop_leave.
23type pw_loop_leaveFunc func(loop unsafe.Pointer)
24
25// pw_loop_iterateFunc is the function type for pw_loop_iterate.
26type pw_loop_iterateFunc func(loop unsafe.Pointer, timeout int32) int32
27
28// pw_context_newFunc is the function type for pw_context_new.
29type pw_context_newFunc func(loop unsafe.Pointer, props unsafe.Pointer, user_data_size uintptr) unsafe.Pointer
30
31// pw_context_connectFunc is the function type for pw_context_connect.
32type pw_context_connectFunc func(context unsafe.Pointer, props unsafe.Pointer, user_data_size uintptr) unsafe.Pointer
33
34// pw_context_destroyFunc is the function type for pw_context_destroy.
35type pw_context_destroyFunc func(context unsafe.Pointer)
36
37// pw_core_disconnectFunc is the function type for pw_core_disconnect.
38type pw_core_disconnectFunc func(core unsafe.Pointer) int32
39
40// pw_properties_new_stringFunc is the function type for pw_properties_new_string.
41type pw_properties_new_stringFunc func(args *byte) unsafe.Pointer
42
43// pw_stream_newFunc is the function type for pw_stream_new.
44type pw_stream_newFunc func(core unsafe.Pointer, name *byte, props unsafe.Pointer) unsafe.Pointer
45
46// pw_stream_update_paramsFunc is the function type for pw_stream_update_params.
47type pw_stream_update_paramsFunc func(stream unsafe.Pointer, params unsafe.Pointer, n_params uint32) int32
48
49// pw_stream_get_node_idFunc is the function type for pw_stream_get_node_id.
50type pw_stream_get_node_idFunc func(stream unsafe.Pointer) uint32
51
52// pw_stream_trigger_processFunc is the function type for pw_stream_trigger_process.
53type pw_stream_trigger_processFunc func(stream unsafe.Pointer) int32
54
55// pw_stream_is_drivingFunc is the function type for pw_stream_is_driving.
56type pw_stream_is_drivingFunc func(stream unsafe.Pointer) bool
57
58// pw_stream_return_bufferFunc is the function type for pw_stream_return_buffer.
59type pw_stream_return_bufferFunc func(stream unsafe.Pointer, buffer unsafe.Pointer) int32
60
61
62
63var (
64
65 pw_loop_new pw_loop_newFunc
66
67 pw_loop_destroy pw_loop_destroyFunc
68
69 pw_loop_get_fd pw_loop_get_fdFunc
70
71 pw_loop_enter pw_loop_enterFunc
72
73 pw_loop_leave pw_loop_leaveFunc
74
75 pw_loop_iterate pw_loop_iterateFunc
76
77 pw_context_new pw_context_newFunc
78
79 pw_context_connect pw_context_connectFunc
80
81 pw_context_destroy pw_context_destroyFunc
82
83 pw_core_disconnect pw_core_disconnectFunc
84
85 pw_properties_new_string pw_properties_new_stringFunc
86
87 pw_stream_new pw_stream_newFunc
88
89 pw_stream_update_params pw_stream_update_paramsFunc
90
91 pw_stream_get_node_id pw_stream_get_node_idFunc
92
93 pw_stream_trigger_process pw_stream_trigger_processFunc
94
95 pw_stream_is_driving pw_stream_is_drivingFunc
96
97 pw_stream_return_buffer pw_stream_return_bufferFunc
98
99)
100
101func registerVideo(handle uintptr) {
102
103 purego.RegisterLibFunc(&pw_loop_new, handle, "pw_loop_new")
104
105 purego.RegisterLibFunc(&pw_loop_destroy, handle, "pw_loop_destroy")
106
107 purego.RegisterLibFunc(&pw_loop_get_fd, handle, "pw_loop_get_fd")
108
109 purego.RegisterLibFunc(&pw_loop_enter, handle, "pw_loop_enter")
110
111 purego.RegisterLibFunc(&pw_loop_leave, handle, "pw_loop_leave")
112
113 purego.RegisterLibFunc(&pw_loop_iterate, handle, "pw_loop_iterate")
114
115 purego.RegisterLibFunc(&pw_context_new, handle, "pw_context_new")
116
117 purego.RegisterLibFunc(&pw_context_connect, handle, "pw_context_connect")
118
119 purego.RegisterLibFunc(&pw_context_destroy, handle, "pw_context_destroy")
120
121 purego.RegisterLibFunc(&pw_core_disconnect, handle, "pw_core_disconnect")
122
123 purego.RegisterLibFunc(&pw_properties_new_string, handle, "pw_properties_new_string")
124
125 purego.RegisterLibFunc(&pw_stream_new, handle, "pw_stream_new")
126
127 purego.RegisterLibFunc(&pw_stream_update_params, handle, "pw_stream_update_params")
128
129 purego.RegisterLibFunc(&pw_stream_get_node_id, handle, "pw_stream_get_node_id")
130
131 purego.RegisterLibFunc(&pw_stream_trigger_process, handle, "pw_stream_trigger_process")
132
133 purego.RegisterLibFunc(&pw_stream_is_driving, handle, "pw_stream_is_driving")
134
135 purego.RegisterLibFunc(&pw_stream_return_buffer, handle, "pw_stream_return_buffer")
136
137}