1
0
mirror of https://codeberg.org/vyivel/dulcepan/ synced 2025-12-22 17:56:49 +02:00

Store sfdo-basedir ctx in state

This commit is contained in:
Kirill Primak
2024-06-24 16:48:26 +03:00
parent 447f2a8e5b
commit 9fb42b9869
3 changed files with 13 additions and 10 deletions

View File

@@ -2,6 +2,7 @@
#define DULCEPAN_H
#include <cairo.h>
#include <sfdo-basedir.h>
#include <stdbool.h>
#include <stddef.h>
#include <wayland-util.h>
@@ -157,6 +158,8 @@ struct dp_state {
struct xkb_context *xkb_context;
struct sfdo_basedir_ctx *basedir_ctx;
struct wl_list outputs;
struct wl_list seats;
@@ -169,7 +172,7 @@ struct dp_state {
bool show_cursors;
};
void dp_config_load(struct dp_config *config, const char *user_path);
void dp_config_load(struct dp_state *state, const char *user_path);
// When done, data must be unmapped
struct wl_buffer *dp_buffer_create(struct dp_state *state, int32_t width, int32_t height,