aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.h
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-01-25 11:44:09 +0100
committerGitHub <noreply@github.com>2023-01-25 11:44:09 +0100
commit29c5cc39fb7f714897c3d6a3454e696e263fb9bc (patch)
treec56dbdb0eb6a4763306adaa73171be77243a1ba9 /example/reader_util.h
parent5849863ef91b9b6a3acc8f1799c6b3642d35f34c (diff)
Some small changes (#1869)
All dissector callbacks should not be exported by the library; make static some other local functions. The callback logic in `ndpiReader` has never been used. With internal libgcrypt, `gcry_control()` should always return no errors. We can check `categories` length at compilation time.
Diffstat (limited to 'example/reader_util.h')
-rw-r--r--example/reader_util.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/example/reader_util.h b/example/reader_util.h
index 3140a71bf..b8b249afe 100644
--- a/example/reader_util.h
+++ b/example/reader_util.h
@@ -353,11 +353,6 @@ typedef struct ndpi_workflow {
struct ndpi_workflow_prefs prefs;
struct ndpi_stats stats;
- ndpi_workflow_callback_ptr __flow_detected_callback;
- void * __flow_detected_udata;
- ndpi_workflow_callback_ptr __flow_giveup_callback;
- void * __flow_giveup_udata;
-
/* outside referencies */
pcap_t *pcap_handle;
@@ -394,20 +389,6 @@ struct ndpi_proto ndpi_workflow_process_packet(struct ndpi_workflow * workflow,
int ndpi_is_datalink_supported(int datalink_type);
-/* flow callbacks for complete detected flow
- (ndpi_flow_info will be freed right after) */
-static inline void ndpi_workflow_set_flow_detected_callback(struct ndpi_workflow * workflow, ndpi_workflow_callback_ptr callback, void * udata) {
- workflow->__flow_detected_callback = callback;
- workflow->__flow_detected_udata = udata;
-}
-
-/* flow callbacks for sufficient detected flow
- (ndpi_flow_info will be freed right after) */
-static inline void ndpi_workflow_set_flow_giveup_callback(struct ndpi_workflow * workflow, ndpi_workflow_callback_ptr callback, void * udata) {
- workflow->__flow_giveup_callback = callback;
- workflow->__flow_giveup_udata = udata;
-}
-
/* compare two nodes in workflow */
int ndpi_workflow_node_cmp(const void *a, const void *b);
void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_flow_info *flow);