]> 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 78e4502bec5f0f60167be60c63d35b765323507d..b2a90efa3f212f6f8594d1968b9e681527b2f5c7 100644 (file)
--- a/src/lbx.h
+++ b/src/lbx.h
@@ -1,7 +1,7 @@
 #ifndef LBX_H_
 #define LBX_H_
 
-#include <stddef.h>
+#include <stdio.h>
 
 /* Errors */
 enum {
@@ -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 */