2019-04-03 10:18:50 +00:00
|
|
|
#ifndef ROFI_DIALOGS_DMENU_SCRIPT_SHARED_H
|
|
|
|
#define ROFI_DIALOGS_DMENU_SCRIPT_SHARED_H
|
|
|
|
|
2021-08-19 11:34:01 +00:00
|
|
|
#include <glib.h>
|
|
|
|
#include <mode.h>
|
|
|
|
#include <stdint.h>
|
2020-05-24 17:09:06 +00:00
|
|
|
|
2021-08-19 11:34:01 +00:00
|
|
|
typedef struct {
|
|
|
|
/** Entry content. (visible part) */
|
|
|
|
char *entry;
|
|
|
|
/** Icon name to display. */
|
|
|
|
char *icon_name;
|
|
|
|
/** Async icon fetch handler. */
|
|
|
|
uint32_t icon_fetch_uid;
|
|
|
|
/** Hidden meta keywords. */
|
|
|
|
char *meta;
|
2020-05-24 17:09:06 +00:00
|
|
|
|
2021-08-19 11:34:01 +00:00
|
|
|
/** info */
|
|
|
|
char *info;
|
|
|
|
|
|
|
|
/** non-selectable */
|
|
|
|
gboolean nonselectable;
|
2019-04-03 10:18:50 +00: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 11:34:01 +00:00
|
|
|
void dmenuscript_parse_entry_extras(G_GNUC_UNUSED Mode *sw,
|
|
|
|
DmenuScriptEntry *entry, char *buffer,
|
|
|
|
size_t length);
|
2019-04-03 10:18:50 +00:00
|
|
|
#endif // ROFI_DIALOGS_DMENU_SCRIPT_SHARED_H
|