aboutsummaryrefslogtreecommitdiff
path: root/src/decode.h
diff options
context:
space:
mode:
authorp37sitdu, corvid <devnull@localhost>2013-01-12 20:13:36 +0000
committerp37sitdu, corvid <devnull@localhost>2013-01-12 20:13:36 +0000
commit0f0e7cc54aecab1647bdcd222c84d17275b92313 (patch)
tree225d4a6128cd2ddbc1f762b0355c986f12c13730 /src/decode.h
parent69666a2dafc8a00e5029f4b671ed94d5be38e109 (diff)
clean up struct typedefs
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);