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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
https://github.com/any1/wayvnc/commit/0ef2ba31928a
https://github.com/any1/wayvnc/commit/a00d568437d1
--- meson.build.orig 2024-11-20 22:49:52 UTC
+++ meson.build
@@ -56,8 +56,8 @@ jansson = dependency('jansson')
wayland_client = dependency('wayland-client')
jansson = dependency('jansson')
-aml_version = ['>=0.3.0', '<0.4.0']
-neatvnc_version = ['>=0.9', '<0.10.0']
+aml_version = ['>=1.0.0', '<2.0.0']
+neatvnc_version = ['>=0.9', '<1.0.0']
neatvnc_project = subproject(
'neatvnc',
@@ -69,7 +69,7 @@ else
if aml_project.found()
aml = aml_project.get_variable('aml_dep')
else
- aml = dependency('aml', version: aml_version)
+ aml = dependency('aml1', version: aml_version)
endif
if neatvnc_project.found()
--- src/ctl-server.c.orig 2024-11-20 22:49:52 UTC
+++ src/ctl-server.c
@@ -700,10 +700,10 @@ request_parse_failed:
client_enqueue_internal_error(client, details);
}
-static void on_ready(void* obj)
+static void on_ready(struct aml_handler* handler)
{
- struct ctl_client* client = aml_get_userdata(obj);
- uint32_t events = aml_get_revents(obj);
+ struct ctl_client* client = aml_get_userdata(handler);
+ uint32_t events = aml_get_revents(handler);
nvnc_trace("Client %p ready: 0x%x", client, events);
if (events & AML_EVENT_WRITE)
@@ -712,10 +712,10 @@ static void on_ready(void* obj)
recv_ready(client);
}
-static void on_connection(void* obj)
+static void on_connection(struct aml_handler* handler)
{
nvnc_log(NVNC_LOG_DEBUG, "New connection");
- struct ctl* server = aml_get_userdata(obj);
+ struct ctl* server = aml_get_userdata(handler);
struct ctl_client* client = calloc(1, sizeof(*client));
if (!client) {
--- src/data-control.c.orig 2024-11-20 22:49:52 UTC
+++ src/data-control.c
@@ -73,7 +73,7 @@ static void destroy_send_context(struct send_context*
free(ctx);
}
-static void on_receive(void* handler)
+static void on_receive(struct aml_handler* handler)
{
struct receive_context* ctx = aml_get_userdata(handler);
int fd = aml_get_fd(handler);
@@ -101,7 +101,7 @@ static void on_receive(void* handler)
destroy_receive_context(ctx);
}
-static void on_send(void* handler)
+static void on_send(struct aml_handler* handler)
{
struct send_context* ctx = aml_get_userdata(handler);
int fd = aml_get_fd(handler);
--- src/ext-image-copy-capture.c.orig 2024-11-20 22:49:52 UTC
+++ src/ext-image-copy-capture.c
@@ -219,11 +219,10 @@ static void ext_image_copy_capture_schedule_capture(st
#endif
}
-static void ext_image_copy_capture_schedule_from_timer(void* obj)
+static void ext_image_copy_capture_schedule_from_timer(struct aml_timer* timer)
{
- struct ext_image_copy_capture* self = aml_get_userdata(obj);
+ struct ext_image_copy_capture* self = aml_get_userdata(timer);
assert(self);
-
ext_image_copy_capture_schedule_capture(self);
}
@@ -703,8 +702,8 @@ static struct screencopy* ext_image_copy_capture_creat
self->wl_output = output;
self->render_cursors = render_cursor;
- self->timer = aml_timer_new(0, ext_image_copy_capture_schedule_from_timer, self,
- NULL);
+ self->timer = aml_timer_new(0,
+ ext_image_copy_capture_schedule_from_timer, self, NULL);
assert(self->timer);
self->pool = wv_buffer_pool_create(NULL);
@@ -736,8 +735,8 @@ static struct screencopy* ext_image_copy_capture_creat
self->wl_output = output;
self->wl_seat = seat;
- self->timer = aml_timer_new(0, ext_image_copy_capture_schedule_from_timer, self,
- NULL);
+ self->timer = aml_timer_new(0,
+ ext_image_copy_capture_schedule_from_timer, self, NULL);
assert(self->timer);
self->pool = wv_buffer_pool_create(NULL);
--- src/main.c.orig 2024-11-20 22:49:52 UTC
+++ src/main.c
@@ -497,9 +497,9 @@ void wayvnc_destroy(struct wayvnc* self)
wayland_detach(self);
}
-void on_wayland_event(void* obj)
+void on_wayland_event(struct aml_handler* handler)
{
- struct wayvnc* self = aml_get_userdata(obj);
+ struct wayvnc* self = aml_get_userdata(handler);
int rc MAYBE_UNUSED = wl_display_prepare_read(self->display);
assert(rc == 0);
@@ -608,7 +608,7 @@ void wayvnc_exit(struct wayvnc* self)
self->do_exit = true;
}
-void on_signal(void* obj)
+void on_signal(struct aml_signal* obj)
{
nvnc_log(NVNC_LOG_INFO, "Received termination signal.");
struct wayvnc* self = aml_get_userdata(obj);
@@ -1044,7 +1044,7 @@ int wayvnc_start_capture_immediate(struct wayvnc* self
return rc;
}
-static void on_capture_restart_timer(void* obj)
+static void on_capture_restart_timer(struct aml_timer* obj)
{
struct wayvnc* self = aml_get_userdata(obj);
aml_unref(self->capture_retry_timer);
@@ -1221,7 +1221,7 @@ int check_cfg_sanity(struct cfg* cfg)
return 0;
}
-static void on_perf_tick(void* obj)
+static void on_perf_tick(struct aml_ticker* obj)
{
struct wayvnc* self = aml_get_userdata(obj);
@@ -2097,9 +2097,6 @@ int main(int argc, char* argv[])
self.selected_seat = seat;
}
-
- if (aml_unstable_abi_version != AML_UNSTABLE_API)
- nvnc_log(NVNC_LOG_PANIC, "libaml is incompatible with this build of wayvnc!");
enum socket_type socket_type = SOCKET_TYPE_TCP;
if (use_unix_socket)
--- src/screencopy.c.orig 2024-11-20 22:49:52 UTC
+++ src/screencopy.c
@@ -287,10 +287,9 @@ static int screencopy__start_capture(struct wlr_screen
return 0;
}
-static void screencopy__poll(void* obj)
+static void screencopy__poll(struct aml_timer* handler)
{
- struct wlr_screencopy* self = aml_get_userdata(obj);
-
+ struct wlr_screencopy* self = aml_get_userdata(handler);
screencopy__start_capture(self);
}
|