diff options
Diffstat (limited to '')
-rw-r--r-- | include/dnsjit/filter/copy.hh (renamed from src/input/zero.hh) | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/input/zero.hh b/include/dnsjit/filter/copy.hh index 9373c90..edf7fc7 100644 --- a/src/input/zero.hh +++ b/include/dnsjit/filter/copy.hh @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2021, OARC, Inc. + * Copyright (c) 2019, CZ.NIC z.s.p.o. * All rights reserved. * * This file is part of dnsjit. @@ -20,18 +20,21 @@ //lua:require("dnsjit.core.log") //lua:require("dnsjit.core.receiver_h") -//lua:require("dnsjit.core.producer_h") -typedef struct input_zero { - core_log_t _log; +typedef struct filter_copy { + core_log_t _log; + core_receiver_t recv; - void* ctx; -} input_zero_t; + void* recv_ctx; + + uint64_t copy; +} filter_copy_t; -core_log_t* input_zero_log(); +core_log_t* filter_copy_log(); -void input_zero_init(input_zero_t* self); -void input_zero_destroy(input_zero_t* self); -void input_zero_run(input_zero_t* self, uint64_t num); +void filter_copy_init(filter_copy_t* self); +void filter_copy_destroy(filter_copy_t* self); +void filter_copy_set(filter_copy_t* self, int32_t obj_type); +uint64_t filter_copy_get(filter_copy_t* self, int32_t obj_type); -core_producer_t input_zero_producer(); +core_receiver_t filter_copy_receiver(filter_copy_t* self); |