core: Make 'struct cus' opaque, only visible in dwarves.c

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2021-06-22 16:16:46 -03:00
parent 3895b29060
commit 972065482a
2 changed files with 6 additions and 4 deletions

View File

@ -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);

View File

@ -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);