mirror of
https://github.com/BoredDevNL/BoredOS.git
synced 2026-05-15 10:48:38 +00:00
25 lines
830 B
C
25 lines
830 B
C
// Copyright (c) 2023-2026 Chris (boreddevnl)
|
|
// This software is released under the GNU General Public License v3.0. See LICENSE file for details.
|
|
// This header needs to maintain in any file it is present in, as per the GPL license terms.
|
|
// wallpaper.h - Wallpaper management for BoredOS
|
|
#ifndef WALLPAPER_H
|
|
#define WALLPAPER_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
// Initialize wallpaper subsystem
|
|
void wallpaper_init(void);
|
|
|
|
// Request wallpaper change by file path (safe from interrupt context)
|
|
void wallpaper_request_set_from_file(const char *path);
|
|
|
|
// Process pending wallpaper actions (call from main loop only!)
|
|
void wallpaper_process_pending(void);
|
|
|
|
// Get decoded wallpaper pixel buffer
|
|
uint32_t* wallpaper_get_pixels(void);
|
|
int wallpaper_get_width(void);
|
|
int wallpaper_get_height(void);
|
|
|
|
#endif // WALLPAPER_H
|