ESAPI-C 1.0
The OWASP Enterprise Security API for C

codec.h

Go to the documentation of this file.
00001 
00017 #include <stdlib.h>
00018 #include <stdbool.h>
00019 
00020 #ifndef _CODEC_H
00021 #define _CODEC_H
00022 
00023 #include "unix_codec.h"
00024 #include "windows_codec.h"
00025 
00029 typedef struct {
00030         char name[50];
00031         char *(*encode_char)(char *, char);
00032         char (*decode_char)(const char *, int *, char *);
00033 } codec;
00034 
00038 extern codec *pcodec_unix;
00039 
00043 extern codec *pcodec_windows;
00044 
00045 extern bool hasNext(char *, int, char);
00046 extern char next(const char *, int *, char *);
00047 extern char *nonatohex(char c);
00048 extern void codec_init();
00049 
00050 #endif
 All Data Structures Files Functions Variables Typedefs Defines