mirror of
https://github.com/wizbright/waybox.git
synced 2025-11-05 13:29:52 -05:00
35 lines
757 B
C
35 lines
757 B
C
#ifndef OUTPUT_H
|
|
#define OUTPUT_H
|
|
|
|
#ifndef _POSIX_C_SOURCE
|
|
#define _POSIX_C_SOURCE 200809L
|
|
#endif
|
|
|
|
#include <assert.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <time.h>
|
|
|
|
#include <wlr/backend.h>
|
|
#include <wlr/render/wlr_renderer.h>
|
|
#include <wlr/render/wlr_texture.h>
|
|
#include <wlr/types/wlr_compositor.h>
|
|
|
|
#include "waybox/server.h"
|
|
|
|
struct wb_output {
|
|
struct wlr_output *wlr_output;
|
|
struct wb_server *server;
|
|
struct timespec last_frame;
|
|
|
|
struct wl_listener destroy;
|
|
struct wl_listener frame;
|
|
|
|
struct wl_list link;
|
|
};
|
|
|
|
void output_frame_notify(struct wl_listener* listener, void *data);
|
|
void output_destroy_notify(struct wl_listener* listener, void *data);
|
|
void new_output_notify(struct wl_listener* listener, void *data);
|
|
|
|
#endif // output.h
|