2022-02-23 17:25:56 -05:00
|
|
|
#ifndef ROFI_MODES_DMENU_SCRIPT_SHARED_H
|
|
|
|
#define ROFI_MODES_DMENU_SCRIPT_SHARED_H
|
2019-04-03 06:18:50 -04:00
|
|
|
|
2021-08-19 07:34:01 -04:00
|
|
|
#include <glib.h>
|
|
|
|
#include <mode.h>
|
|
|
|
#include <stdint.h>
|
2020-05-24 13:09:06 -04:00
|
|
|
|
2021-08-19 07:34:01 -04:00
|
|
|
typedef struct {
|
|
|
|
/** Entry content. (visible part) */
|
|
|
|
char *entry;
|
2023-11-06 14:02:48 -05:00
|
|
|
|
|
|
|
/** Display */
|
|
|
|
char *display;
|
|
|
|
|
2021-08-19 07:34:01 -04:00
|
|
|
/** Icon name to display. */
|
|
|
|
char *icon_name;
|
|
|
|
/** Async icon fetch handler. */
|
|
|
|
uint32_t icon_fetch_uid;
|
2022-06-27 14:52:12 -04:00
|
|
|
uint32_t icon_fetch_size;
|
2021-08-19 07:34:01 -04:00
|
|
|
/** Hidden meta keywords. */
|
|
|
|
char *meta;
|
2020-05-24 13:09:06 -04:00
|
|
|
|
2021-08-19 07:34:01 -04:00
|
|
|
/** info */
|
|
|
|
char *info;
|
|
|
|
|
|
|
|
/** non-selectable */
|
|
|
|
gboolean nonselectable;
|
2023-01-08 06:10:40 -05:00
|
|
|
|
2024-02-28 14:47:18 -05:00
|
|
|
/** permanent */
|
|
|
|
gboolean permanent;
|
|
|
|
|
2023-01-08 06:10:40 -05:00
|
|
|
/** urgent */
|
|
|
|
gboolean urgent;
|
|
|
|
/** active */
|
|
|
|
gboolean active;
|
2019-04-03 06:18:50 -04:00
|
|
|
} DmenuScriptEntry;
|
|
|
|
/**
|
|
|
|
* @param sw Unused
|
|
|
|
* @param entry The entry to update.
|
|
|
|
* @param buffer The buffer to parse.
|
|
|
|
* @param length The buffer length.
|
|
|
|
*
|
|
|
|
* Updates entry with the parsed values from buffer.
|
|
|
|
*/
|
2021-08-19 07:34:01 -04:00
|
|
|
void dmenuscript_parse_entry_extras(G_GNUC_UNUSED Mode *sw,
|
|
|
|
DmenuScriptEntry *entry, char *buffer,
|
|
|
|
size_t length);
|
2022-02-23 17:25:56 -05:00
|
|
|
#endif // ROFI_MODES_DMENU_SCRIPT_SHARED_H
|