summaryrefslogtreecommitdiff
path: root/psycopg/connection.h
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-02-04 11:20:54 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-02-04 13:01:11 +0000
commit8527144173f9679b2779c71d4dbdfa0571e4bd40 (patch)
treeff663df66fa7e14d5207dbb9fe2d580f92ca0b50 /psycopg/connection.h
parentca59fd8b3f7f7082e72ade390914bec5d5f944bd (diff)
downloadpsycopg2-8527144173f9679b2779c71d4dbdfa0571e4bd40.tar.gz
Better separation between interface and state change code
The state change function has a C callable signature.
Diffstat (limited to 'psycopg/connection.h')
-rw-r--r--psycopg/connection.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/psycopg/connection.h b/psycopg/connection.h
index 6c39263..00430f9 100644
--- a/psycopg/connection.h
+++ b/psycopg/connection.h
@@ -167,8 +167,8 @@ HIDDEN void conn_close_locked(connectionObject *self);
RAISES_NEG HIDDEN int conn_commit(connectionObject *self);
RAISES_NEG HIDDEN int conn_rollback(connectionObject *self);
HIDDEN int conn_set_autocommit(connectionObject *self, int value);
-RAISES_NEG HIDDEN int conn_parse_isolevel(connectionObject *self, PyObject *pyval);
-RAISES_NEG HIDDEN int conn_parse_onoff(PyObject *pyval);
+RAISES_NEG HIDDEN int conn_set_session(connectionObject *self, int autocommit,
+ int isolevel, int readonly, int deferrable);
RAISES_NEG HIDDEN int conn_switch_isolation_level(connectionObject *self, int level);
RAISES_NEG HIDDEN int conn_set_client_encoding(connectionObject *self, const char *enc);
HIDDEN int conn_poll(connectionObject *self);