2019-04-03 06:18:50 -04:00
|
|
|
#ifndef ROFI_DIALOGS_DMENU_SCRIPT_SHARED_H
|
|
|
|
#define ROFI_DIALOGS_DMENU_SCRIPT_SHARED_H
|
|
|
|
|
2020-02-02 07:56:37 -05:00
|
|
|
typedef struct
|
|
|
|
{
|
2019-04-03 06:18:50 -04:00
|
|
|
/** Entry content. (visible part) */
|
|
|
|
char *entry;
|
|
|
|
/** Icon name to display. */
|
|
|
|
char *icon_name;
|
|
|
|
/** Async icon fetch handler. */
|
|
|
|
uint32_t icon_fetch_uid;
|
2020-02-01 07:49:11 -05:00
|
|
|
/** Hidden meta keywords. */
|
|
|
|
char *meta;
|
2020-05-24 13:09:06 -04:00
|
|
|
|
|
|
|
/** info */
|
|
|
|
char *info;
|
|
|
|
|
2020-02-02 08:21:29 -05:00
|
|
|
/** non-selectable */
|
|
|
|
gboolean nonselectable;
|
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.
|
|
|
|
*/
|
|
|
|
void dmenuscript_parse_entry_extras ( G_GNUC_UNUSED Mode *sw, DmenuScriptEntry *entry, char *buffer, size_t length );
|
|
|
|
#endif // ROFI_DIALOGS_DMENU_SCRIPT_SHARED_H
|