nostrdb: header: add ptr helpers for swift
swift is kind of dumb when it comes to opaque pointers Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
Daniel D’Aquino
parent
ccca6e58ec
commit
588cebd18d
@@ -32,7 +32,13 @@ struct ndb_lmdb;
|
|||||||
union ndb_packed_str;
|
union ndb_packed_str;
|
||||||
struct bolt11;
|
struct bolt11;
|
||||||
|
|
||||||
// sorry, swift needs help with forward declared pointers like this
|
// some bindings like swift needs help with forward declared pointers
|
||||||
|
struct ndb_tag_ptr { struct ndb_tag *ptr; };
|
||||||
|
struct ndb_tags_ptr { struct ndb_tags *ptr; };
|
||||||
|
struct ndb_block_ptr { struct ndb_block *ptr; };
|
||||||
|
struct ndb_blocks_ptr { struct ndb_blocks *ptr; };
|
||||||
|
struct ndb_note_ptr { struct ndb_note *ptr; };
|
||||||
|
|
||||||
struct ndb_t {
|
struct ndb_t {
|
||||||
struct ndb *ndb;
|
struct ndb *ndb;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user