diff options
author | Simon Glass <sjg@chromium.org> | 2020-05-10 11:40:03 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-05-18 18:36:55 -0400 |
commit | 09140113108541b95d340f3c7b6ee597d31ccc73 (patch) | |
tree | 4b4241b799bbbb2eeef4164392442b193af1703f /cmd/pxe_utils.h | |
parent | 691d719db7183dfb1d1360efed4c5e9f6899095f (diff) |
command: Remove the cmd_tbl_t typedef
We should not use typedefs in U-Boot. They cannot be used as forward
declarations which means that header files must include the full header to
access them.
Drop the typedef and rename the struct to remove the _s suffix which is
now not useful.
This requires quite a few header-file additions.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/pxe_utils.h')
-rw-r--r-- | cmd/pxe_utils.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/pxe_utils.h b/cmd/pxe_utils.h index a38ac81a470..77d25888758 100644 --- a/cmd/pxe_utils.h +++ b/cmd/pxe_utils.h @@ -74,15 +74,15 @@ struct pxe_menu { extern bool is_pxe; -extern int (*do_getfile)(cmd_tbl_t *cmdtp, const char *file_path, +extern int (*do_getfile)(struct cmd_tbl *cmdtp, const char *file_path, char *file_addr); void destroy_pxe_menu(struct pxe_menu *cfg); -int get_pxe_file(cmd_tbl_t *cmdtp, const char *file_path, +int get_pxe_file(struct cmd_tbl *cmdtp, const char *file_path, unsigned long file_addr); -int get_pxelinux_path(cmd_tbl_t *cmdtp, const char *file, +int get_pxelinux_path(struct cmd_tbl *cmdtp, const char *file, unsigned long pxefile_addr_r); -void handle_pxe_menu(cmd_tbl_t *cmdtp, struct pxe_menu *cfg); -struct pxe_menu *parse_pxefile(cmd_tbl_t *cmdtp, unsigned long menucfg); +void handle_pxe_menu(struct cmd_tbl *cmdtp, struct pxe_menu *cfg); +struct pxe_menu *parse_pxefile(struct cmd_tbl *cmdtp, unsigned long menucfg); int format_mac_pxe(char *outbuf, size_t outbuf_len); #endif /* __PXE_UTILS_H */ |