Merge pull request #18 from keithbowes/modernize

Modernize
This commit is contained in:
Keith Bowes 2020-03-11 08:32:50 -04:00 committed by GitHub
commit 114e265eef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 66 additions and 399 deletions

View file

@ -2,7 +2,7 @@
#define OUTPUT_H
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L
#define _POSIX_C_SOURCE 200112L
#endif
#include <stdio.h>

View file

@ -1,10 +1,9 @@
#ifndef SERVER_H
#define SERVER_H
#ifdef _POSIX_C_SOURCE
#undef _POSIX_C_SOURCE
#endif
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200112L
#endif
#include <stdio.h>
@ -17,7 +16,7 @@
#include <wlr/types/wlr_screencopy_v1.h>
#include <wlr/types/wlr_matrix.h>
#include <wlr/types/wlr_gamma_control_v1.h>
#include <wlr/types/wlr_gtk_primary_selection.h>
#include <wlr/types/wlr_primary_selection_v1.h>
#include <wlr/types/wlr_output_layout.h>
#include <wlr/types/wlr_xdg_shell.h>
@ -50,8 +49,8 @@ struct wb_server {
struct wl_list outputs; // wb_output::link
};
bool init_wb(struct wb_server* server);
bool start_wb(struct wb_server* server);
bool terminate_wb(struct wb_server* server);
bool wb_create_backend(struct wb_server* server);
bool wb_start_server(struct wb_server* server);
bool wb_terminate(struct wb_server* server);
#endif // server.h