]> git.draconx.ca Git - liblbx.git/blobdiff - src/lbx.h
liblbx: Make lbx_close return the result of fclose.
[liblbx.git] / src / lbx.h
index ec525d0bf56eee05b6fa12eee283b43d8e0ea09b..b2a90efa3f212f6f8594d1968b9e681527b2f5c7 100644 (file)
--- a/src/lbx.h
+++ b/src/lbx.h
@@ -9,6 +9,7 @@ enum {
        LBX_EMAGIC,
        LBX_EEOF,
        LBX_ERANGE,
+       LBX_EFORMAT,
 };
 extern int lbx_errno;
 
@@ -23,8 +24,7 @@ struct lbx_statbuf {
 /* Archive operations */
 LBX   *lbx_fopen(FILE *, const char *);
 LBX   *lbx_mopen(void *, size_t, const char *);
-LBX   *lbx_open(const char *);
-void   lbx_close(LBX *);
+int    lbx_close(LBX *);
 size_t lbx_numfiles(LBX *);
 
 /* File operations */