#ifndef C8_BACKGROUND_H
#define C8_BACKGROUND_H

#include <stdbool.h>

/*
 * The pictures behind Start and the lock screen, chosen in Photos ("Set
 * as"). Each is a JPEG Photos made at screen size, at a fixed path in
 * $XDG_DATA_HOME/cont8nuum/; none there means the colour and pattern of
 * [appearance]. They are files rather than config.ini keys because only
 * PC settings may change config.ini (the compositor's private protocol),
 * and a copy keeps showing after the original is moved or deleted.
 * Photos writes them by rename, so a reader never sees half of one;
 * whoever shows them watches the folder (c8_background_dir).
 */

enum c8_background {
	C8_BACKGROUND_START,
	C8_BACKGROUND_LOCK,
};

/* The folder they are in (g_free) */
char *c8_background_dir(void);
/* Where one is, whether it's there or not (g_free) */
char *c8_background_path(enum c8_background which);
/* Its file name in the folder, for a watch's events */
const char *c8_background_name(enum c8_background which);
bool c8_background_set(enum c8_background which);

#endif
