]> git.draconx.ca Git - liblbx.git/blobdiff - src/lbx.h
Implement stub list operation.
[liblbx.git] / src / lbx.h
index 4232b9f87c0d818b97e6ff21e0fb7c553d33246a..563ef4eb81e55b30195a05559cdaaad4c5d60773 100644 (file)
--- a/src/lbx.h
+++ b/src/lbx.h
@@ -1,10 +1,26 @@
 #ifndef LBX_H_
 #define LBX_H_
 
+#include <stddef.h>
+
+/* Errors */
+enum {
+       LBX_ESUCCESS,
+       LBX_EMAGIC,
+       LBX_EEOF,
+};
+extern int lbx_errno;
+
+/* Opaque */
 typedef struct lbx_state LBX;
 
-LBX *lbx_fopen(FILE *);
-LBX *lbx_open(const char *);
-void lbx_close(LBX *);
+/* File operations */
+LBX   *lbx_fopen(FILE *);
+LBX   *lbx_open(const char *);
+void   lbx_close(LBX *);
+size_t lbx_numfiles(LBX *);
+
+/* Misc operations */
+const char *lbx_strerror(void);
 
 #endif