From: Karel Zak Date: Wed, 13 Sep 2023 10:54:18 +0000 (+0200) Subject: libsmartcols: (filter) move struct filter_expr X-Git-Tag: v2.40-rc1~151^2~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1e8c6e1373c8b8f1b8e9b3c5e40f7672ec5bb97;p=thirdparty%2Futil-linux.git libsmartcols: (filter) move struct filter_expr Signed-off-by: Karel Zak --- 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;