From b1e8c6e1373c8b8f1b8e9b3c5e40f7672ec5bb97 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 13 Sep 2023 12:54:18 +0200 Subject: [PATCH] libsmartcols: (filter) move struct filter_expr Signed-off-by: Karel Zak --- libsmartcols/src/filter-expr.c | 8 ++++++++ libsmartcols/src/smartcolsP.h | 8 +------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/libsmartcols/src/filter-expr.c b/libsmartcols/src/filter-expr.c index f6616e5633..c4d7ba8b40 100644 --- a/libsmartcols/src/filter-expr.c +++ b/libsmartcols/src/filter-expr.c @@ -5,6 +5,14 @@ #include "smartcolsP.h" +struct filter_expr { + struct filter_node node; + enum filter_etype type; + + struct filter_node *left; + struct filter_node *right; +}; + struct filter_node *filter_new_expr( struct libscols_filter *fltr __attribute__((__unused__)), enum filter_etype type, diff --git a/libsmartcols/src/smartcolsP.h b/libsmartcols/src/smartcolsP.h index df3163e649..0ae0aedee1 100644 --- a/libsmartcols/src/smartcolsP.h +++ b/libsmartcols/src/smartcolsP.h @@ -546,13 +546,7 @@ struct filter_param { unsigned int has_value :1; }; -struct filter_expr { - struct filter_node node; - enum filter_etype type; - - struct filter_node *left; - struct filter_node *right; -}; +struct filter_expr; struct libscols_filter { int refcount; -- 2.47.3