so we don't need heap allocation. we will be calling this a lot in tight render loops, we don't want to be allocating on each frame. Signed-off-by: William Casarin <jb55@jb55.com>
16 lines
307 B
C
16 lines
307 B
C
|
|
#ifndef NDB_INVOICE_H
|
|
#define NDB_INVOICE_H
|
|
|
|
#include <inttypes.h>
|
|
#include "cursor.h"
|
|
#include "nostrdb.h"
|
|
|
|
struct bolt11;
|
|
|
|
// ENCODING
|
|
int ndb_encode_invoice(struct cursor *cur, struct bolt11 *invoice);
|
|
int ndb_decode_invoice(struct cursor *cur, struct ndb_invoice *invoice);
|
|
|
|
#endif /* NDB_INVOICE_H */
|