kiwmi/include/frontend.h

27 lines
677 B
C
Raw Normal View History

2019-03-26 20:45:00 +00:00
/* Copyright (c), Charlotte Meyer <dev@buffet.sh>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at https://mozilla.org/MPL/2.0/.
*/
#ifndef KIWMI_FRONTEND_H
#define KIWMI_FRONTEND_H
#include <stdbool.h>
2019-04-08 16:10:37 +00:00
#include <stdio.h>
#include <wayland-server.h>
2019-03-26 20:45:00 +00:00
struct kiwmi_frontend {
const char *frontend_path;
2019-04-08 16:10:37 +00:00
int sock_fd;
char *sock_path;
struct wl_event_source *sock_event_source;
struct wl_listener display_destroy;
2019-03-26 20:45:00 +00:00
};
bool frontend_init(struct kiwmi_frontend *frontend, const char *frontend_path);
#endif /* KIWMI_FRONTEND_H */