diff options
| author | Albert Cervin <albert@acervin.com> | 2024-05-22 00:00:29 +0200 |
|---|---|---|
| committer | Albert Cervin <albert@acervin.com> | 2024-09-12 20:17:56 +0200 |
| commit | 405da5f84b072ea97b69359454899f45d92d24b6 (patch) | |
| tree | 20525b4bc44a5d8cbab4d62abe8413e174731db6 /test/fake-reactor.c | |
| parent | 4ab7e453e26afc6e9f4938c65f89463fbba9e267 (diff) | |
| download | dged-405da5f84b072ea97b69359454899f45d92d24b6.tar.gz dged-405da5f84b072ea97b69359454899f45d92d24b6.tar.xz dged-405da5f84b072ea97b69359454899f45d92d24b6.zip | |
WIP LSP client
This contains the start of an LSP client.
Nothing (except starting the LSP server) works
at the moment and the feature is disabled by default.
Diffstat (limited to 'test/fake-reactor.c')
| -rw-r--r-- | test/fake-reactor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fake-reactor.c b/test/fake-reactor.c index aafe8a3..d3497fb 100644 --- a/test/fake-reactor.c +++ b/test/fake-reactor.c @@ -5,13 +5,13 @@ struct reactor { struct fake_reactor_impl *impl; }; -struct reactor *reactor_create() { +struct reactor *reactor_create(void) { return (struct reactor *)calloc(1, sizeof(struct reactor)); } void reactor_destroy(struct reactor *reactor) { free(reactor); } -void reactor_update(struct reactor *reactor) {} +void reactor_update(struct reactor *reactor) { (void)reactor; } bool reactor_poll_event(struct reactor *reactor, uint32_t ev_id) { if (reactor->impl != NULL) { return reactor->impl->poll_event(reactor->impl->userdata, ev_id); @@ -32,7 +32,7 @@ uint32_t reactor_register_interest(struct reactor *reactor, int fd, void reactor_unregister_interest(struct reactor *reactor, uint32_t ev_id) { if (reactor->impl != NULL) { - return reactor->impl->unregister_interest(reactor->impl->userdata, ev_id); + reactor->impl->unregister_interest(reactor->impl->userdata, ev_id); } } |
