libbpf: Expose btf_type_by_id() internally

btf_type_by_id() is internal-only convenience API returning non-const pointer
to struct btf_type. Expose it outside of btf.c for re-use.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210318194036.3521577-2-andrii@kernel.org
This commit is contained in:
Andrii Nakryiko 2021-03-18 12:40:25 -07:00 • committed by Alexei Starovoitov
commit e14ef4bf01
2 changed files with 6 additions and 1 deletions