Addons updated to new doc format
[io.git] / addons / MD5 / source / IoMD5.h
blob0c43ac1d5c224da38d5dbfc495f9ec5c592d6f8b
2 //metadoc MD5 copyright Steve Dekorte 2002
5 #ifndef IOMD5_DEFINED
6 #define IOMD5_DEFINED 1
8 #include "IoObject.h"
9 #include "IoNumber.h"
10 #include "md5.h"
12 #define ISMD5(self) IoObject_hasCloneFunc_(self, (IoTagCloneFunc *)IoMD5_rawClone)
14 typedef IoObject IoMD5;
16 typedef struct
18 md5_state_t mstate;
19 md5_byte_t digest[16];
20 char isDone;
21 } IoMD5Data;
23 IoMD5 *IoMD5_rawClone(IoMD5 *self);
24 IoMD5 *IoMD5_proto(void *state);
25 IoMD5 *IoMD5_new(void *state);
27 void IoMD5_free(IoMD5 *self);
28 void IoMD5_mark(IoMD5 *self);
30 /* ----------------------------------------------------------- */
32 IoObject *IoMD5_appendSeq(IoMD5 *self, IoObject *locals, IoMessage *m);
33 IoObject *IoMD5_md5(IoMD5 *self, IoObject *locals, IoMessage *m);
34 IoObject *IoMD5_md5String(IoMD5 *self, IoObject *locals, IoMessage *m);
36 #endif