Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicate function declarations-v3 #11993

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/app-layer-events.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ static inline int AppLayerDecoderEventsIsEventSet(
return 0;
}

void AppLayerDecoderEventsResetEvents(AppLayerDecoderEvents *events);
void AppLayerDecoderEventsFreeEvents(AppLayerDecoderEvents **events);
int DetectEngineGetEventInfo(const char *event_name, int *event_id, AppLayerEventType *event_type);

#endif /* SURICATA_APP_LAYER_EVENTS_H */
3 changes: 0 additions & 3 deletions src/detect-engine-mpm.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ void PatternMatchThreadDestroy(MpmThreadCtx *mpm_thread_ctx, uint16_t);

int PatternMatchPrepareGroup(DetectEngineCtx *, SigGroupHead *);

TmEcode DetectEngineThreadCtxInit(ThreadVars *, void *, void **);
TmEcode DetectEngineThreadCtxDeinit(ThreadVars *, void *);

int SignatureHasPacketContent(const Signature *);
int SignatureHasStreamContent(const Signature *);

Expand Down
2 changes: 2 additions & 0 deletions src/detect-engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@

#include "detect-engine-loader.h"

#include "detect-engine-alert.h"

#include "util-classification-config.h"
#include "util-reference-config.h"
#include "util-threshold-config.h"
Expand Down
1 change: 0 additions & 1 deletion src/detect-engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ bool DetectEngineBufferTypeSupportsMultiInstanceGetById(
const DetectEngineCtx *de_ctx, const int id);
bool DetectEngineBufferTypeSupportsFramesGetById(const DetectEngineCtx *de_ctx, const int id);
const char *DetectEngineBufferTypeGetDescriptionById(const DetectEngineCtx *de_ctx, const int id);
const DetectBufferType *DetectEngineBufferTypeGetById(const DetectEngineCtx *de_ctx, const int id);
int DetectEngineBufferTypeGetByIdTransforms(
DetectEngineCtx *de_ctx, const int id, TransformData *transforms, int transform_cnt);
void DetectEngineBufferRunSetupCallback(const DetectEngineCtx *de_ctx, const int id, Signature *s);
Expand Down
1 change: 0 additions & 1 deletion src/detect-http-header.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#define SURICATA_DETECT_HTTP_HEADER_H

void DetectHttpHeaderRegister(void);
void DetectHttpRawHeaderRegister(void);
void DetectHttpRequestHeaderRegister(void);
void DetectHttpResponseHeaderRegister(void);

Expand Down
2 changes: 0 additions & 2 deletions src/detect.h
Original file line number Diff line number Diff line change
Expand Up @@ -1594,8 +1594,6 @@ void *DetectGetInnerTx(void *tx_ptr, AppProto alproto, AppProto engine_alproto,
void RuleMatchCandidateTxArrayInit(DetectEngineThreadCtx *det_ctx, uint32_t size);
void RuleMatchCandidateTxArrayFree(DetectEngineThreadCtx *det_ctx);

void AlertQueueInit(DetectEngineThreadCtx *det_ctx);
void AlertQueueFree(DetectEngineThreadCtx *det_ctx);
void AlertQueueAppend(DetectEngineThreadCtx *det_ctx, const Signature *s, Packet *p, uint64_t tx_id,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this fn is also duplicated.

uint8_t alert_flags);

Expand Down
1 change: 1 addition & 0 deletions src/flow-manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include "flow-spare-pool.h"

#include "stream-tcp.h"
#include "stream-tcp-cache.h"

#include "util-device.h"

Expand Down
4 changes: 0 additions & 4 deletions src/stream-tcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ int StreamTcpSetMemcap(uint64_t);
uint64_t StreamTcpGetMemcap(void);
int StreamTcpCheckMemcap(uint64_t);
uint64_t StreamTcpMemuseCounter(void);
uint64_t StreamTcpReassembleMemuseGlobalCounter(void);

int StreamTcpSegmentForEach(const Packet *p, uint8_t flag,
StreamSegmentCallback CallbackFunc,
Expand Down Expand Up @@ -205,7 +204,4 @@ void StreamTcpUpdateAppLayerProgress(TcpSession *ssn, char direction,
uint64_t StreamTcpGetUsable(const TcpStream *stream, const bool eof);
uint64_t StreamDataRightEdge(const TcpStream *stream, const bool eof);

void StreamTcpThreadCacheEnable(void);
void StreamTcpThreadCacheCleanup(void);

#endif /* SURICATA_STREAM_TCP_H */
1 change: 0 additions & 1 deletion src/suricata.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ int RunmodeIsUnittests(void);
#else
#define RunmodeIsUnittests() 0
#endif
int SCRunmodeGet(void);

/**
* \brief Get the current run mode.
Expand Down
6 changes: 0 additions & 6 deletions src/util-profiling.h
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,6 @@ typedef struct SCProfileDetectCtx_ {
pthread_mutex_t data_m;
} SCProfileDetectCtx;

void SCProfilingRulesGlobalInit(void);
void SCProfilingRuleDestroyCtx(struct SCProfileDetectCtx_ *);
void SCProfilingRuleInitCounters(DetectEngineCtx *);
void SCProfilingRuleUpdateCounter(DetectEngineThreadCtx *, uint16_t, uint64_t, int);
void SCProfilingRuleThreadSetup(struct SCProfileDetectCtx_ *, DetectEngineThreadCtx *);
void SCProfilingRuleThreadCleanup(DetectEngineThreadCtx *);
int SCProfileRuleStart(Packet *p);
json_t *SCProfileRuleTriggerDump(DetectEngineCtx *de_ctx);
void SCProfileRuleStartCollection(void);
Expand Down