cagebreak/fuzz/fuzz-lib.h
project-repo d19c32d7a4 Release 2.3.0
Functionality:
  * Add configuration to anchor position of messages (#60, 71 in Bugs.md).
  * Add output priorisation (#38, 68 in Bugs.md).
  * Print whether output is active in dump.

Bug Fixes:
  * Fix gamma control (72 in Bugs.md).
  * Add missing commands to example config.
  * Add message_config to dump output.

Example Scripts:
  * Add screenshot script.
  * Make example scripts standalone.

Documentation:
  * Escape html tags in config man page. (#68, 69 in Bugs.md)
  * Improve README.md (#62, 70 in Bugs.md).
  * Improve SECURITY.md.
  * Add CONTRIBUTING.md (#62, 70 in Bugs.md).
  * FAQ: Add Firefox screenshare instructions for wayland.
  * FAQ: Add wlroots downgrading instructions for workaround in case of temporary wlroots incompatibility.
  * Update copyright notices to 2024.

Development Tooling:
  * Add new gpg keys (signed by the old ones).
  * Add PR template.
  * Add dev-FAQ.
  * Remove now-unnecessary fanalyzer pragmas.
2024-01-26 10:53:03 +00:00

44 lines
828 B
C

// Copyright 2020 - 2024, project-repo and the cagebreak contributors
// SPDX-License-Identifier: MIT
#ifndef CG_FUZZ_LIB_H
#define CG_FUZZ_LIB_H
#define _POSIX_C_SOURCE 200812L
#include "../server.h"
#ifndef WAIT_ANY
#define WAIT_ANY -1
#endif
extern struct cg_server server;
extern struct wlr_xdg_shell *xdg_shell;
extern struct wlr_xwayland *xwayland;
#if CG_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 cg_server *server);
void
create_output(char *line, struct cg_server *server);
void
create_input_device(char *line, struct cg_server *server);
void
destroy_input_device(char *line, struct cg_server *server);
void
destroy_output(char *line, struct cg_server *server);
#endif