summaryrefslogtreecommitdiffstats
path: root/include/dialogs/dmenuscriptshared.h
blob: 27247fa54ed8461a7e0662223fc211d018fd9b93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef ROFI_DIALOGS_DMENU_SCRIPT_SHARED_H
#define ROFI_DIALOGS_DMENU_SCRIPT_SHARED_H

#include <glib.h>
#include <mode.h>
#include <stdint.h>

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;

  /** info */
  char *info;

  /** non-selectable */
  gboolean nonselectable;
} 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