#pragma once extern "C" { #include "postgres.h" #include "fmgr.h" } extern "C" { // UTL_TCP Datum utl_tcp_available(PG_FUNCTION_ARGS); Datum utl_tcp_close_all_connections(PG_FUNCTION_ARGS); Datum utl_tcp_close_connection(PG_FUNCTION_ARGS); Datum utl_tcp_flush(PG_FUNCTION_ARGS); Datum utl_tcp_get_line(PG_FUNCTION_ARGS); Datum utl_tcp_get_line_nchar(PG_FUNCTION_ARGS); Datum utl_tcp_get_raw(PG_FUNCTION_ARGS); Datum utl_tcp_get_text(PG_FUNCTION_ARGS); Datum utl_tcp_get_text_nchar(PG_FUNCTION_ARGS); Datum utl_tcp_open_connection(PG_FUNCTION_ARGS); Datum utl_tcp_read_line(PG_FUNCTION_ARGS); Datum utl_tcp_read_raw(PG_FUNCTION_ARGS); Datum utl_tcp_read_text(PG_FUNCTION_ARGS); Datum utl_tcp_secure_connection(PG_FUNCTION_ARGS); Datum utl_tcp_write_line(PG_FUNCTION_ARGS); Datum utl_tcp_write_raw(PG_FUNCTION_ARGS); Datum utl_tcp_write_text(PG_FUNCTION_ARGS); Datum utl_tcp_bytes_available_fd(PG_FUNCTION_ARGS); Datum utl_tcp_get_version(PG_FUNCTION_ARGS); }