void SCClassConfClasstypeHashFree(void *ch);
static const char *SCClassConfGetConfFilename(const DetectEngineCtx *de_ctx);
+static SCClassConfClasstype *SCClassConfAllocClasstype(uint8_t classtype_id,
+ const char *classtype, const char *classtype_desc, int priority);
+static void SCClassConfDeAllocClasstype(SCClassConfClasstype *ct);
+
void SCClassConfInit(void)
{
const char *eb = NULL;
}
/**
+ * \internal
* \brief Returns a new SCClassConfClasstype instance. The classtype string
* is converted into lowercase, before being assigned to the instance.
*
* \retval ct Pointer to the new instance of SCClassConfClasstype on success;
* NULL on failure.
*/
-SCClassConfClasstype *SCClassConfAllocClasstype(uint8_t classtype_id,
+static SCClassConfClasstype *SCClassConfAllocClasstype(uint8_t classtype_id,
const char *classtype,
const char *classtype_desc,
int priority)
}
/**
+ * \internal
* \brief Frees a SCClassConfClasstype instance
*
* \param Pointer to the SCClassConfClasstype instance that has to be freed
*/
-void SCClassConfDeAllocClasstype(SCClassConfClasstype *ct)
+static void SCClassConfDeAllocClasstype(SCClassConfClasstype *ct)
{
if (ct != NULL) {
if (ct->classtype != NULL)
int priority;
} SCClassConfClasstype;
-SCClassConfClasstype *SCClassConfAllocClasstype(uint8_t, const char *,
- const char *, int);
-void SCClassConfDeAllocClasstype(SCClassConfClasstype *);
void SCClassConfLoadClassficationConfigFile(DetectEngineCtx *, FILE *fd);
SCClassConfClasstype *SCClassConfGetClasstype(const char *,
DetectEngineCtx *);