diff options
| author | peter <peter@pmikkelsen.com> | 2026-08-20 16:04:41 +0000 |
|---|---|---|
| committer | peter <peter@pmikkelsen.com> | 2026-08-20 16:04:41 +0000 |
| commit | 3be992e3f45dcfd9f8a45fa447de3abb710819b7 (patch) | |
| tree | 6cf02c89acdb0fbf12c20f03ea190a0047221db9 /src/aplwc.h | |
| parent | 3a81615601bf37ffc4f7b570030709ac0782e2ed (diff) | |
Adapt a different coding style (no typedef'ed structs, C90...), and start working on a test setup.
FossilOrigin-Name: ebb73df5fc58859b6e985c5ec84196bdd09f639dbcdc69e706f6b17652a2d413
Diffstat (limited to 'src/aplwc.h')
| -rw-r--r-- | src/aplwc.h | 16 |
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 */ |