From 837f1e5e4fe3c4d7a33d472da2f75f515d8b3286 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sat, 19 Feb 2011 00:25:23 +0000 Subject: [PATCH] Set hidden visibility to a few functions not public --- psycopg/connection.h | 2 ++ psycopg/notify_type.c | 2 +- psycopg/pqpath.h | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/psycopg/connection.h b/psycopg/connection.h index af2470da..552b93d7 100644 --- a/psycopg/connection.h +++ b/psycopg/connection.h @@ -124,6 +124,8 @@ HIDDEN PyObject *conn_text_from_chars(connectionObject *pgconn, const char *str) HIDDEN int conn_get_standard_conforming_strings(PGconn *pgconn); HIDDEN int conn_get_isolation_level(PGresult *pgres); HIDDEN int conn_get_protocol_version(PGconn *pgconn); +HIDDEN int conn_get_server_version(PGconn *pgconn); +HIDDEN PGcancel *conn_get_cancel(PGconn *pgconn); HIDDEN void conn_notice_process(connectionObject *self); HIDDEN void conn_notice_clean(connectionObject *self); HIDDEN void conn_notifies_process(connectionObject *self); diff --git a/psycopg/notify_type.c b/psycopg/notify_type.c index ec2ec36f..169a7182 100644 --- a/psycopg/notify_type.c +++ b/psycopg/notify_type.c @@ -189,7 +189,7 @@ exit: } -long +static long notify_hash(NotifyObject *self) { long rv = -1L; diff --git a/psycopg/pqpath.h b/psycopg/pqpath.h index 8e9e20a2..080047c0 100644 --- a/psycopg/pqpath.h +++ b/psycopg/pqpath.h @@ -44,6 +44,8 @@ HIDDEN int pq_commit(connectionObject *conn); HIDDEN int pq_abort_locked(connectionObject *conn, PGresult **pgres, char **error, PyThreadState **tstate); HIDDEN int pq_abort(connectionObject *conn); +HIDDEN int pq_reset_locked(connectionObject *conn, PGresult **pgres, + char **error, PyThreadState **tstate); HIDDEN int pq_reset(connectionObject *conn); HIDDEN int pq_tpc_command_locked(connectionObject *conn, const char *cmd, const char *tid,