summaryrefslogtreecommitdiff
path: root/src/aplwc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/aplwc.h')
-rw-r--r--src/aplwc.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/aplwc.h b/src/aplwc.h
index e01e38c..603e4f3 100644
--- a/src/aplwc.h
+++ b/src/aplwc.h
@@ -4,16 +4,18 @@
#include <stdint.h>
#include <stddef.h>
-typedef enum {
+enum aplwc_rc {
APLWC_OK,
APLWC_NOT_IMPLEMENTED,
- APLWC_OUT_OF_MEMORY,
-} AplwcRc;
+ APLWC_OUT_OF_MEMORY
+};
-typedef struct Aplwc Aplwc;
+struct aplwc;
-AplwcRc aplwc_new(Aplwc **, uint8_t *, size_t);
-AplwcRc aplwc_destroy(Aplwc *);
-const char *aplwc_errstr(Aplwc *);
+enum aplwc_rc aplwc_new(struct aplwc **, uint8_t *, size_t);
+enum aplwc_rc aplwc_destroy(struct aplwc *);
+const char *aplwc_errstr(struct aplwc *);
+
+#define APLWC_MIN_MEM (128)
#endif /* APLWC_H */