nostrscript.h (615B)
1 // 2 // nostrscript.h 3 // damus 4 // 5 // Created by William Casarin on 2023-06-02. 6 // 7 8 #ifndef nostrscript_h 9 #define nostrscript_h 10 11 #define NSCRIPT_LOADED 1 12 #define NSCRIPT_PARSE_ERR 2 13 #define NSCRIPT_INIT_ERR 3 14 15 #include <stdio.h> 16 #include "wasm.h" 17 18 int nscript_load(struct wasm_parser *p, struct wasm_interp *interp, unsigned char *wasm, unsigned long len); 19 int nscript_nostr_cmd(struct wasm_interp *interp, int, void*, int); 20 int nscript_pool_send_to(struct wasm_interp *interp, const u16*, int, const u16 *, int); 21 int nscript_set_bool(struct wasm_interp *interp, const u16*, int, int); 22 23 24 #endif /* nostrscript_h */