summaryrefslogtreecommitdiff
path: root/psycopg/lobject.h
diff options
context:
space:
mode:
authorJames Henstridge <james@jamesh.id.au>2008-05-06 17:09:43 +0800
committerJames Henstridge <james@jamesh.id.au>2008-05-06 17:09:43 +0800
commit2046ae34fbeb32a6ed38fa829df809c34aa4344f (patch)
tree0ecf381f3a0085571b94ba27275694f932671167 /psycopg/lobject.h
parent7d66c20edb087e175064a638cc90f2a644e2f93a (diff)
downloadpsycopg2-2046ae34fbeb32a6ed38fa829df809c34aa4344f.tar.gz
* psycopg/lobject*: const'ify the code.
Diffstat (limited to 'psycopg/lobject.h')
-rw-r--r--psycopg/lobject.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/psycopg/lobject.h b/psycopg/lobject.h
index 9f6bce3..d6dd979 100644
--- a/psycopg/lobject.h
+++ b/psycopg/lobject.h
@@ -42,7 +42,7 @@ typedef struct {
int closed; /* 1 if the lobject is closed */
int mode; /* numeric mode, tells if lobject was opened */
- char *smode; /* string mode if lobject was opened */
+ const char *smode; /* string mode if lobject was opened */
long int mark; /* copied from conn->mark */
@@ -53,12 +53,14 @@ typedef struct {
/* functions exported from lobject_int.c */
HIDDEN int lobject_open(lobjectObject *self, connectionObject *conn,
- Oid oid, int mode, Oid new_oid, char *new_file);
+ Oid oid, int mode, Oid new_oid,
+ const char *new_file);
HIDDEN int lobject_unlink(lobjectObject *self);
-HIDDEN int lobject_export(lobjectObject *self, char *filename);
+HIDDEN int lobject_export(lobjectObject *self, const char *filename);
HIDDEN Py_ssize_t lobject_read(lobjectObject *self, char *buf, size_t len);
-HIDDEN Py_ssize_t lobject_write(lobjectObject *self, char *buf, size_t len);
+HIDDEN Py_ssize_t lobject_write(lobjectObject *self, const char *buf,
+ size_t len);
HIDDEN int lobject_seek(lobjectObject *self, int pos, int whence);
HIDDEN int lobject_tell(lobjectObject *self);
HIDDEN int lobject_close(lobjectObject *self);