Prep 1.27
[dwarves.git] / btf_encoder.h
blobf54c95ab05f11b714bfd26d5a0d6f143a8d15759
1 #ifndef _BTF_ENCODER_H_
2 #define _BTF_ENCODER_H_ 1
3 /*
4 SPDX-License-Identifier: GPL-2.0-only
6 Copyright (C) 2019 Facebook
8 Derived from ctf_encoder.h, which is:
9 Copyright (C) Arnaldo Carvalho de Melo <acme@redhat.com>
12 #include <stdbool.h>
14 struct btf_encoder;
15 struct btf;
16 struct cu;
17 struct list_head;
19 struct btf_encoder *btf_encoder__new(struct cu *cu, const char *detached_filename, struct btf *base_btf, bool verbose, struct conf_load *conf_load);
20 void btf_encoder__delete(struct btf_encoder *encoder);
22 int btf_encoder__encode(struct btf_encoder *encoder);
24 int btf_encoder__encode_cu(struct btf_encoder *encoder, struct cu *cu, struct conf_load *conf_load);
26 struct btf *btf_encoder__btf(struct btf_encoder *encoder);
28 int btf_encoder__add_encoder(struct btf_encoder *encoder, struct btf_encoder *other);
30 #endif /* _BTF_ENCODER_H_ */