EIther `struct Type` or `Type` work fine because of our type
declarations, but cbindgen uses `struct Type` everywhere so its
easiest if we match it, especially for downstream code.
sed -i 's/typedef LDKnative.*Import.*LDKnative.*;//g' include/lightning.h
# UnsafeCell is `repr(transparent)` so should be ignored here
sed -i 's/typedef LDKnative.*Import.*LDKnative.*;//g' include/lightning.h
# UnsafeCell is `repr(transparent)` so should be ignored here
- sed -i 's/LDKUnsafeCell<\(.*\)> /\1 /g' include/lightning.h
+ sed -i 's/LDKUnsafeCell<\(.*\)> /struct \1 /g' include/lightning.h
# stdlib.h doesn't exist in clang's wasm sysroot, and cbindgen
# doesn't actually use it anyway, so drop the import.
# stdlib.h doesn't exist in clang's wasm sysroot, and cbindgen
# doesn't actually use it anyway, so drop the import.
sed -i '' 's/typedef LDKnative.*Import.*LDKnative.*;//g' include/lightning.h
# UnsafeCell is `repr(transparent)` so should be ignored by cbindgen
sed -i '' 's/typedef LDKnative.*Import.*LDKnative.*;//g' include/lightning.h
# UnsafeCell is `repr(transparent)` so should be ignored by cbindgen
- sed -i '' 's/LDKUnsafeCell<\(.*\)> /\1 /g' include/lightning.h
+ sed -i '' 's/LDKUnsafeCell<\(.*\)> /struct \1 /g' include/lightning.h
# stdlib.h doesn't exist in clang's wasm sysroot, and cbindgen
# doesn't actually use it anyway, so drop the import.
# stdlib.h doesn't exist in clang's wasm sysroot, and cbindgen
# doesn't actually use it anyway, so drop the import.