From 972065482a7f714d373b2cf16577584197ba99fd Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Tue, 22 Jun 2021 16:16:46 -0300 Subject: [PATCH] core: Make 'struct cus' opaque, only visible in dwarves.c Signed-off-by: Arnaldo Carvalho de Melo --- dwarves.c | 5 +++++ dwarves.h | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dwarves.c b/dwarves.c index 7a61fa4..af7ea8d 100644 --- a/dwarves.c +++ b/dwarves.c @@ -417,6 +417,11 @@ static void cu__find_class_holes(struct cu *cu) class__find_holes(pos); } +struct cus { + uint32_t nr_entries; + struct list_head cus; +}; + bool cus__empty(const struct cus *cus) { return list_empty(&cus->cus); diff --git a/dwarves.h b/dwarves.h index 4c4d17b..cbbc052 100644 --- a/dwarves.h +++ b/dwarves.h @@ -108,10 +108,7 @@ struct conf_fprintf { uint8_t strip_inline:1; }; -struct cus { - uint32_t nr_entries; - struct list_head cus; -}; +struct cus; struct cus *cus__new(void); void cus__delete(struct cus *cus);