aboutsummaryrefslogtreecommitdiff
path: root/src/decode.h
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-01-13 15:21:46 +0100
committerSebastian Geerken <devnull@localhost>2013-01-13 15:21:46 +0100
commit5797bbb234071775fe6148a29c9224c04912c8c1 (patch)
tree4bd03596f875f886f7951e43526341b128c087c7 /src/decode.h
parent657daf90e9a24bfeb3c38aca2682b5f36d86dff3 (diff)
parent927887827f2a440f1f1b39e58d87b12154098d4a (diff)
Update with main repo.
Diffstat (limited to 'src/decode.h')
-rw-r--r--src/decode.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/decode.h b/src/decode.h
index 064177eb..279807a6 100644
--- a/src/decode.h
+++ b/src/decode.h
@@ -7,15 +7,13 @@
extern "C" {
#endif /* __cplusplus */
-typedef struct _Decode Decode;
-
-struct _Decode {
+typedef struct Decode {
char *buffer;
Dstr *leftover;
void *state;
- Dstr *(*decode) (Decode *dc, const char *instr, int inlen);
- void (*free) (Decode *dc);
-};
+ Dstr *(*decode) (struct Decode *dc, const char *instr, int inlen);
+ void (*free) (struct Decode *dc);
+} Decode;
Decode *a_Decode_transfer_init(const char *format);
Decode *a_Decode_content_init(const char *format);