sphlib
|
00001 /* $Id: sph_md2.h 154 2010-04-26 17:00:24Z tp $ */ 00045 #ifndef SPH_MD2_H__ 00046 #define SPH_MD2_H__ 00047 00048 #include <stddef.h> 00049 #include "sph_types.h" 00050 00054 #define SPH_SIZE_md2 128 00055 00066 typedef struct { 00067 #ifndef DOXYGEN_IGNORE 00068 unsigned char buf[16]; /* first field, for alignment */ 00069 union { 00070 unsigned char X[48]; 00071 sph_u32 W[12]; 00072 } u; 00073 unsigned char C[16]; 00074 unsigned L, count; 00075 #endif 00076 } sph_md2_context; 00077 00083 void sph_md2_init(void *cc); 00084 00093 void sph_md2(void *cc, const void *data, size_t len); 00094 00104 void sph_md2_close(void *cc, void *dst); 00105 00106 #endif