summaryrefslogtreecommitdiff
path: root/rpmio/rpmio.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-06-20 15:54:48 +0000
committerjbj <devnull@localhost>2000-06-20 15:54:48 +0000
commit4272f490caa3921b46fef03d7f2820c9da2bb6f0 (patch)
treecd8a9f58f2ad34c7fd38b27eab7266c381abc4b1 /rpmio/rpmio.h
parentf365ff702280b8256a10e5cc9dad17be638ef947 (diff)
downloadlibrpm-tizen-4272f490caa3921b46fef03d7f2820c9da2bb6f0.tar.gz
librpm-tizen-4272f490caa3921b46fef03d7f2820c9da2bb6f0.tar.bz2
librpm-tizen-4272f490caa3921b46fef03d7f2820c9da2bb6f0.zip
- API: uncouple fadio from rest of rpmio.
- API: externalize legacy fdOpen interface for rpmfind et al. CVS patchset: 3873 CVS date: 2000/06/20 15:54:48
Diffstat (limited to 'rpmio/rpmio.h')
-rw-r--r--rpmio/rpmio.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/rpmio/rpmio.h b/rpmio/rpmio.h
index edf3d0a22..cf46f6bb7 100644
--- a/rpmio/rpmio.h
+++ b/rpmio/rpmio.h
@@ -133,6 +133,15 @@ off_t fdSize (FD_t fd);
/*@null@*/ FILE *fdFdopen( /*@only@*/ void * cookie, const char * mode);
#endif
+/* XXX Legacy interfaces needed by gnorpm, rpmfind et al */
+
+int fdFileno(void * cookie);
+/*@null@*/ FD_t fdOpen(const char *path, int flags, mode_t mode);
+ssize_t fdRead(void * cookie, /*@out@*/ char * buf, size_t count);
+ssize_t fdWrite(void * cookie, const char * buf, size_t count);
+int fdClose( /*@only@*/ void * cookie);
+
+/* XXX FD_t reference count debugging wrappers */
#define fdLink(_fd, _msg) fdio->_fdref(_fd, _msg, __FILE__, __LINE__)
#define fdFree(_fd, _msg) fdio->_fdderef(_fd, _msg, __FILE__, __LINE__)
#define fdNew(_msg) fdio->_fdnew(_msg, __FILE__, __LINE__)