- 重构模块使用新的代码风格 - 老代码 (src 目录下的代码) 继续使用之前的代码风格 通过在需要不同代码风格的目录下放对应 .clang-format 配置文件实现
21 lines
444 B
C
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);
|