Go to the documentation of this file.
30 #define ARRAY_CAP_STEP 16
42 const char *proto_name = NULL;
49 proto_name =
"http_any";
62 if (proto_name == NULL)
86 FatalError(
"Unable to allocate g_alproto_strings");
94 FatalError(
"Unable to reallocate g_alproto_strings");
const char * AppProtoToString(AppProto alproto)
Maps the ALPROTO_*, to its string equivalent.
AppProtoStringTuple * g_alproto_strings
void AppProtoRegisterProtoString(AppProto alproto, const char *proto_name)
AppProto StringToAppProto(const char *proto_name)
Maps a string to its ALPROTO_* equivalent.
#define SCRealloc(ptr, sz)
struct AppProtoStringTuple AppProtoStringTuple
AppProto AppProtoNewProtoFromString(const char *proto_name)
AppProto g_alproto_strings_cap
#define DEBUG_VALIDATE_BUG_ON(exp)