2024-11-18 18:59:49 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
|
#ifndef LABWC_DESKTOP_ENTRY_H
|
|
|
|
|
#define LABWC_DESKTOP_ENTRY_H
|
|
|
|
|
|
|
|
|
|
struct server;
|
|
|
|
|
|
|
|
|
|
void desktop_entry_init(struct server *server);
|
|
|
|
|
void desktop_entry_finish(struct server *server);
|
2024-11-18 19:03:39 +01:00
|
|
|
|
2025-01-07 15:21:30 +01:00
|
|
|
struct lab_img *desktop_entry_load_icon_from_app_id(
|
|
|
|
|
struct server *server, const char *app_id, int size, float scale);
|
|
|
|
|
|
|
|
|
|
struct lab_img *desktop_entry_load_icon(
|
|
|
|
|
struct server *server, const char *icon_name, int size, float scale);
|
2024-11-18 18:59:49 +01:00
|
|
|
|
2024-11-18 19:03:39 +01:00
|
|
|
/**
|
|
|
|
|
* desktop_entry_name_lookup() - return the application name
|
|
|
|
|
* from the sfdo desktop entry database based on app_id
|
|
|
|
|
*
|
|
|
|
|
* The lifetime of the returned value is the same as that
|
|
|
|
|
* of sfdo_desktop_db (from `struct sfdo.desktop_db`)
|
|
|
|
|
*/
|
|
|
|
|
const char *desktop_entry_name_lookup(struct server *server,
|
|
|
|
|
const char *app_id);
|
|
|
|
|
|
2024-11-18 18:59:49 +01:00
|
|
|
#endif /* LABWC_DESKTOP_ENTRY_H */
|