libctf: adjust foreign-endian byteswapping for v4

Split into a separate commit because it's not yet really tested.

Callers not yet adjusted.
This commit is contained in:
Nick Alcock
2025-04-24 14:27:48 +01:00
parent 7bcd444b9c
commit 99e9ab4828
2 changed files with 194 additions and 118 deletions

View File

@@ -787,8 +787,9 @@ extern struct ctf_archive *ctf_arc_open_internal (const char *, int *);
extern void ctf_arc_close_internal (struct ctf_archive *);
extern const ctf_preamble_t *ctf_arc_bufpreamble (const ctf_sect_t *);
extern void *ctf_set_open_errno (int *, int);
extern void ctf_flip_header (ctf_header_t *);
extern int ctf_flip (ctf_dict_t *, ctf_header_t *, unsigned char *, int);
extern int ctf_flip_header (void *, int, int);
extern int ctf_flip (ctf_dict_t *, ctf_header_t *, unsigned char *,
int is_btf, int to_foreign);
extern int ctf_import_unref (ctf_dict_t *fp, ctf_dict_t *pfp);