damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

profile_reader.h (3812B)


      1 #ifndef PROFILE_READER_H
      2 #define PROFILE_READER_H
      3 
      4 /* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */
      5 
      6 #ifndef FLATBUFFERS_COMMON_READER_H
      7 #include "flatbuffers_common_reader.h"
      8 #endif
      9 #include "flatcc_flatbuffers.h"
     10 #ifndef __alignas_is_defined
     11 #include <stdalign.h>
     12 #endif
     13 #include "flatcc_prologue.h"
     14 #ifndef flatbuffers_identifier
     15 #define flatbuffers_identifier 0
     16 #endif
     17 #ifndef flatbuffers_extension
     18 #define flatbuffers_extension "bin"
     19 #endif
     20 
     21 
     22 typedef const struct NdbProfile_table *NdbProfile_table_t;
     23 typedef struct NdbProfile_table *NdbProfile_mutable_table_t;
     24 typedef const flatbuffers_uoffset_t *NdbProfile_vec_t;
     25 typedef flatbuffers_uoffset_t *NdbProfile_mutable_vec_t;
     26 typedef const struct NdbProfileRecord_table *NdbProfileRecord_table_t;
     27 typedef struct NdbProfileRecord_table *NdbProfileRecord_mutable_table_t;
     28 typedef const flatbuffers_uoffset_t *NdbProfileRecord_vec_t;
     29 typedef flatbuffers_uoffset_t *NdbProfileRecord_mutable_vec_t;
     30 #ifndef NdbProfile_file_identifier
     31 #define NdbProfile_file_identifier 0
     32 #endif
     33 /* deprecated, use NdbProfile_file_identifier */
     34 #ifndef NdbProfile_identifier
     35 #define NdbProfile_identifier 0
     36 #endif
     37 #define NdbProfile_type_hash ((flatbuffers_thash_t)0xba639e28)
     38 #define NdbProfile_type_identifier "\x28\x9e\x63\xba"
     39 #ifndef NdbProfile_file_extension
     40 #define NdbProfile_file_extension "bin"
     41 #endif
     42 #ifndef NdbProfileRecord_file_identifier
     43 #define NdbProfileRecord_file_identifier 0
     44 #endif
     45 /* deprecated, use NdbProfileRecord_file_identifier */
     46 #ifndef NdbProfileRecord_identifier
     47 #define NdbProfileRecord_identifier 0
     48 #endif
     49 #define NdbProfileRecord_type_hash ((flatbuffers_thash_t)0xa1a8569d)
     50 #define NdbProfileRecord_type_identifier "\x9d\x56\xa8\xa1"
     51 #ifndef NdbProfileRecord_file_extension
     52 #define NdbProfileRecord_file_extension "bin"
     53 #endif
     54 
     55 
     56 
     57 struct NdbProfile_table { uint8_t unused__; };
     58 
     59 static inline size_t NdbProfile_vec_len(NdbProfile_vec_t vec)
     60 __flatbuffers_vec_len(vec)
     61 static inline NdbProfile_table_t NdbProfile_vec_at(NdbProfile_vec_t vec, size_t i)
     62 __flatbuffers_offset_vec_at(NdbProfile_table_t, vec, i, 0)
     63 __flatbuffers_table_as_root(NdbProfile)
     64 
     65 __flatbuffers_define_string_field(0, NdbProfile, name, 0)
     66 __flatbuffers_define_string_field(1, NdbProfile, website, 0)
     67 __flatbuffers_define_string_field(2, NdbProfile, about, 0)
     68 __flatbuffers_define_string_field(3, NdbProfile, lud16, 0)
     69 __flatbuffers_define_string_field(4, NdbProfile, banner, 0)
     70 __flatbuffers_define_string_field(5, NdbProfile, display_name, 0)
     71 __flatbuffers_define_scalar_field(6, NdbProfile, reactions, flatbuffers_bool, flatbuffers_bool_t, UINT8_C(1))
     72 __flatbuffers_define_string_field(7, NdbProfile, picture, 0)
     73 __flatbuffers_define_string_field(8, NdbProfile, nip05, 0)
     74 __flatbuffers_define_scalar_field(9, NdbProfile, damus_donation, flatbuffers_int32, int32_t, INT32_C(0))
     75 __flatbuffers_define_scalar_field(10, NdbProfile, damus_donation_v2, flatbuffers_int32, int32_t, INT32_C(0))
     76 __flatbuffers_define_string_field(11, NdbProfile, lud06, 0)
     77 
     78 struct NdbProfileRecord_table { uint8_t unused__; };
     79 
     80 static inline size_t NdbProfileRecord_vec_len(NdbProfileRecord_vec_t vec)
     81 __flatbuffers_vec_len(vec)
     82 static inline NdbProfileRecord_table_t NdbProfileRecord_vec_at(NdbProfileRecord_vec_t vec, size_t i)
     83 __flatbuffers_offset_vec_at(NdbProfileRecord_table_t, vec, i, 0)
     84 __flatbuffers_table_as_root(NdbProfileRecord)
     85 
     86 __flatbuffers_define_table_field(0, NdbProfileRecord, profile, NdbProfile_table_t, 0)
     87 __flatbuffers_define_scalar_field(1, NdbProfileRecord, received_at, flatbuffers_uint64, uint64_t, UINT64_C(0))
     88 __flatbuffers_define_scalar_field(2, NdbProfileRecord, note_key, flatbuffers_uint64, uint64_t, UINT64_C(0))
     89 __flatbuffers_define_string_field(3, NdbProfileRecord, lnurl, 0)
     90 
     91 
     92 #include "flatcc_epilogue.h"
     93 #endif /* PROFILE_READER_H */