links: remove link_validate_buffer

This commit is contained in:
Kamil Trzcinski 2023-02-24 11:39:48 +01:00
parent 456eec5847
commit 425bbe7745
2 changed files with 0 additions and 9 deletions

View File

@ -148,13 +148,6 @@ static int links_enqueue_from_capture_list(buffer_list_t *capture_list, link_t *
LOG_ERROR(capture_list, "No buffer dequeued from capture_list?");
}
for (int j = 0; j < link->n_callbacks; j++) {
if (link->callbacks[j].validate_buffer && !link->callbacks[j].validate_buffer(link, buf)) {
LOG_DEBUG(capture_list, "Buffer rejected by validation");
return 0;
}
}
bool dropped = false;
for (int j = 0; link->output_lists[j]; j++) {

View File

@ -12,13 +12,11 @@ typedef struct link_s link_t;
typedef void (*link_on_buffer)(buffer_t *buf);
typedef bool (*link_check_streaming)();
typedef bool (*link_validate_buffer)(struct link_s *link, buffer_t *buf);
typedef struct link_callbacks_s {
const char *name;
link_on_buffer on_buffer;
link_check_streaming check_streaming;
link_validate_buffer validate_buffer;
buffer_lock_t *buf_lock;
} link_callbacks_t;