v0.2.0 4c97002

stream_playback_gen.go RawHistoryFolder

1// Code generated by pipewiregen. DO NOT EDIT.
2
3package capi
4
5import "github.com/bnema/purego"
6
7import "unsafe"
8
9
10// pw_stream_new_simpleFunc is the function type for pw_stream_new_simple.
11type pw_stream_new_simpleFunc func(context unsafe.Pointer, name *byte, props unsafe.Pointer, events unsafe.Pointer, data unsafe.Pointer) unsafe.Pointer
12
13// pw_stream_connectFunc is the function type for pw_stream_connect.
14type pw_stream_connectFunc func(stream unsafe.Pointer, direction int32, id uint32, flags uint32, ports unsafe.Pointer, n_ports uint32) int32
15
16// pw_stream_set_activeFunc is the function type for pw_stream_set_active.
17type pw_stream_set_activeFunc func(stream unsafe.Pointer, active bool) int32
18
19// pw_stream_disconnectFunc is the function type for pw_stream_disconnect.
20type pw_stream_disconnectFunc func(stream unsafe.Pointer) int32
21
22// pw_stream_dequeue_bufferFunc is the function type for pw_stream_dequeue_buffer.
23type pw_stream_dequeue_bufferFunc func(stream unsafe.Pointer) unsafe.Pointer
24
25// pw_stream_queue_bufferFunc is the function type for pw_stream_queue_buffer.
26type pw_stream_queue_bufferFunc func(stream unsafe.Pointer, buffer unsafe.Pointer) int32
27
28// pw_stream_add_listenerFunc is the function type for pw_stream_add_listener.
29type pw_stream_add_listenerFunc func(stream unsafe.Pointer, listener unsafe.Pointer, events unsafe.Pointer, data unsafe.Pointer) int32
30
31// pw_stream_destroyFunc is the function type for pw_stream_destroy.
32type pw_stream_destroyFunc func(stream unsafe.Pointer)
33
34
35
36// pw_stream_events represents the callback struct for pw_stream_events.
37type pw_stream_events struct{version uint32; destroy uintptr; state_changed uintptr; control_info uintptr; io_changed uintptr; param_changed uintptr; add_buffer uintptr; remove_buffer uintptr; process uintptr; drained uintptr; command uintptr; trigger_done uintptr}
38
39
40
41var (
42
43	pw_stream_new_simple pw_stream_new_simpleFunc
44
45	pw_stream_connect pw_stream_connectFunc
46
47	pw_stream_set_active pw_stream_set_activeFunc
48
49	pw_stream_disconnect pw_stream_disconnectFunc
50
51	pw_stream_dequeue_buffer pw_stream_dequeue_bufferFunc
52
53	pw_stream_queue_buffer pw_stream_queue_bufferFunc
54
55	pw_stream_add_listener pw_stream_add_listenerFunc
56
57	pw_stream_destroy pw_stream_destroyFunc
58
59)
60
61func registerStream_playback(handle uintptr) {
62
63	purego.RegisterLibFunc(&pw_stream_new_simple, handle, "pw_stream_new_simple")
64
65	purego.RegisterLibFunc(&pw_stream_connect, handle, "pw_stream_connect")
66
67	purego.RegisterLibFunc(&pw_stream_set_active, handle, "pw_stream_set_active")
68
69	purego.RegisterLibFunc(&pw_stream_disconnect, handle, "pw_stream_disconnect")
70
71	purego.RegisterLibFunc(&pw_stream_dequeue_buffer, handle, "pw_stream_dequeue_buffer")
72
73	purego.RegisterLibFunc(&pw_stream_queue_buffer, handle, "pw_stream_queue_buffer")
74
75	purego.RegisterLibFunc(&pw_stream_add_listener, handle, "pw_stream_add_listener")
76
77	purego.RegisterLibFunc(&pw_stream_destroy, handle, "pw_stream_destroy")
78
79}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 8

↑↓ moveenter openesc close