45 lines
841 B
C
45 lines
841 B
C
// Copyright 2020 - 2025, project-repo and the NEDM contributors
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#ifndef NEDM_FUZZ_LIB_H
|
|
#define NEDM_FUZZ_LIB_H
|
|
|
|
#define _POSIX_C_SOURCE 200812L
|
|
|
|
#include "../server.h"
|
|
|
|
#ifndef WAIT_ANY
|
|
#define WAIT_ANY -1
|
|
#endif
|
|
|
|
extern struct nedm_server server;
|
|
extern struct wlr_xdg_shell *xdg_shell;
|
|
|
|
extern struct wlr_xwayland *xwayland;
|
|
#if NEDM_HAS_XWAYLAND
|
|
extern struct wlr_xcursor_manager *xcursor_manager;
|
|
#endif
|
|
|
|
void
|
|
cleanup(void);
|
|
|
|
int
|
|
LLVMFuzzerInitialize(int *argc, char ***argv);
|
|
|
|
void
|
|
move_cursor(char *line, struct nedm_server *server);
|
|
|
|
void
|
|
create_output(char *line, struct nedm_server *server);
|
|
|
|
void
|
|
create_input_device(char *line, struct nedm_server *server);
|
|
|
|
void
|
|
destroy_input_device(char *line, struct nedm_server *server);
|
|
|
|
void
|
|
destroy_output(char *line, struct nedm_server *server);
|
|
|
|
#endif
|