github.com/ncruces/go-sqlite3@v0.15.1-0.20240520133447-53eef1510ff0/sqlite3/pointer.c (about) 1 2 #include "include.h" 3 #include "sqlite3.h" 4 5 #define GO_POINTER_TYPE "github.com/ncruces/go-sqlite3.Pointer" 6 7 int sqlite3_bind_pointer_go(sqlite3_stmt *stmt, int i, go_handle app) { 8 return sqlite3_bind_pointer(stmt, i, app, GO_POINTER_TYPE, go_destroy); 9 } 10 11 void sqlite3_result_pointer_go(sqlite3_context *ctx, go_handle app) { 12 sqlite3_result_pointer(ctx, app, GO_POINTER_TYPE, go_destroy); 13 } 14 15 go_handle sqlite3_value_pointer_go(sqlite3_value *val) { 16 return sqlite3_value_pointer(val, GO_POINTER_TYPE); 17 }