lander/include/entry.h

18 lines
312 B
C
Raw Permalink Normal View History

2022-12-08 07:52:21 +01:00
#ifndef LANDER_ENTRY
#define LANDER_ENTRY
#include <stdint.h>
typedef enum entry_type { Redirect, Paste, Unknown } EntryType;
typedef struct entry {
EntryType type;
char string[];
} Entry;
uint64_t entry_new(Entry **entry_ptr, EntryType type, const char *string);
void entry_free(Entry *entry);
#endif