Files
zdwm/src/wallpaper.h
Zedhugh Chen 2fc4b33359 style: 更新 .clang-format 规则并重新格式化所有源文件
- 重构模块使用新的代码风格
- 老代码 (src 目录下的代码) 继续使用之前的代码风格

通过在需要不同代码风格的目录下放对应 .clang-format 配置文件实现
2026-04-14 01:52:53 +08:00

21 lines
444 B
C

#pragma once
#include <stdint.h>
#include <xcb/xproto.h>
#include "types.h"
typedef struct wallpaper_context_t wallpaper_context_t;
typedef struct wallpaper_config_t {
uint32_t interval;
uint32_t path_count;
char **paths;
xcb_screen_t *screen;
xcb_connection_t *conn;
monitor_t *monitors;
} wallpaper_config_t;
wallpaper_context_t *wallpaper_init(wallpaper_config_t config);
void wallpaper_clean(wallpaper_context_t *context);