mirror of
https://github.com/swaywm/sway.git
synced 2026-04-17 06:46:32 -04:00
optional compile time dependency. This means the former code paths are all retained and new ones are wrapped in #if HAVE_LIBSFDO. Behavior should be identical now between the two code paths. Later commits will add the handling of icons specified as absolute paths which both former swaybar code and libsfdo have thus far avoided.
19 lines
470 B
C
19 lines
470 B
C
#ifndef _SWAY_SFDO_H
|
|
#define _SWAY_SFDO_H
|
|
|
|
#include <sfdo-desktop.h>
|
|
#include <sfdo-icon.h>
|
|
#include <sfdo-basedir.h>
|
|
|
|
struct sfdo {
|
|
struct sfdo_desktop_ctx *desktop_ctx;
|
|
struct sfdo_icon_ctx *icon_ctx;
|
|
struct sfdo_desktop_db *desktop_db;
|
|
struct sfdo_icon_theme *icon_theme;
|
|
};
|
|
|
|
char *sfdo_icon_lookup_extended(struct sfdo *sfdo, char *icon_name, int target_size, int scale);
|
|
struct sfdo *sfdo_create(char *icon_theme);
|
|
void sfdo_destroy(struct sfdo *sfdo);
|
|
|
|
#endif
|