#include <stdio.h>
-/* Errors */
-enum {
- LBX_ESUCCESS,
- LBX_EMAGIC,
- LBX_EEOF,
- LBX_ERANGE,
- LBX_EFORMAT,
-};
-extern int lbx_errno;
-
struct lbx_file_ops {
size_t (*read)(void *buf, size_t size, void *handle);
int (*seek)(void *handle, long offset, int whence);
extern const struct lbx_file_ops lbx_arch_fops;
/* Opaque */
-typedef struct lbx_state LBX;
+typedef struct lbx LBX;
typedef struct lbx_file_state LBXfile;
+struct lbx {
+ unsigned nfiles;
+};
+
struct lbx_statbuf {
const char *name;
size_t size;
int lbx_file_eof(LBXfile *f);
void lbx_file_close(LBXfile *f);
-/* Misc operations */
-const char *lbx_strerror(void);
-
#endif