This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use pg_extend::pg_sys; | |
| use std::{ffi::c_void, ptr}; | |
| type PGCallback = unsafe extern "C" fn(arg: *mut c_void); | |
| pub struct FunctionCallbackWrapper { | |
| fn_mcxt: pg_sys::MemoryContext, | |
| } | |
| impl FunctionCallbackWrapper { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[macro_use] | |
| extern crate lazy_static; | |
| use libloading::os::windows::{Library, Symbol}; | |
| use pg_extend::pg_magic; | |
| use pg_extend::pg_sys::{self, Pg_finfo_record}; | |
| use pg_extern_attr::pg_extern; | |
| use std::os::raw::c_void; | |
| lazy_static! { |