refactor: remove entry code from trie

This commit is contained in:
Jef Roosens 2022-12-08 07:52:21 +01:00
parent 4b772d003b
commit 0c742f45b0
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
7 changed files with 23 additions and 16 deletions

17
include/entry.h Normal file
View file

@ -0,0 +1,17 @@
#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