nostrdb/Inital embedded content parser

This adds some initial code for nostrdb content parsing.

We still need to write tests for encoding and decoding, so this is
likely not working yet.

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2023-12-27 12:43:20 -08:00
committed by Daniel D’Aquino
parent 9ff1f69a82
commit e0a2dcf3db
8 changed files with 253 additions and 102 deletions

View File

@@ -57,7 +57,6 @@ typedef int (*ndb_word_parser_fn)(void *, const char *word, int word_len,
// representation
#pragma pack(push, 1)
union ndb_packed_str {
struct {
char str[3];
@@ -99,6 +98,7 @@ struct ndb_note {
#pragma pack(pop)
struct ndb_migration {
ndb_migrate_fn fn;
};