X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=lib%2Fsystem%2Fsystem.h;h=ab251016a4caf44282683f1adfc6a24d6e3c233c;hp=a7a1a120c3142756bd05b644b509a446890b707e;hb=bd5c147d5e39a10469876048df12348dc556c20c;hpb=c20a0460f3c9057aa920949414f8c3bd6529f927 diff --git a/lib/system/system.h b/lib/system/system.h index a7a1a12..ab25101 100644 --- a/lib/system/system.h +++ b/lib/system/system.h @@ -17,9 +17,16 @@ struct pb_system_apps { extern const struct pb_system_apps pb_system_apps; +enum tftp_type { + TFTP_TYPE_BUSYBOX, + TFTP_TYPE_HPA, + TFTP_TYPE_UNKNOWN, + TFTP_TYPE_BROKEN, +}; + +extern enum tftp_type tftp_type; + int pb_run_cmd(const char *const *cmd_argv, int wait, int dry_run); -int pb_run_cmd_pipe(const char *const *cmd_argv, int wait, int dry_run, - void *ctx, char **buf, int *buf_len); int pb_mkdir_recursive(const char *dir); int pb_rmdir_recursive(const char *base, const char *dir);