diff options
Diffstat (limited to 'util/ec_panicinfo.h')
-rw-r--r-- | util/ec_panicinfo.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/util/ec_panicinfo.h b/util/ec_panicinfo.h new file mode 100644 index 0000000000..cb968b968f --- /dev/null +++ b/util/ec_panicinfo.h @@ -0,0 +1,30 @@ +/* Copyright 2016 The ChromiumOS Authors + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef EC_PANICINFO_H +#define EC_PANICINFO_H + +#include "panic_defs.h" + +#include <stdio.h> + +/** + * Prints panic information to stdout. + * + * @param pdata Panic information to print + * @return 0 if success or non-zero error code if error. + */ +int parse_panic_info(const char *data, size_t size); + +/** + * Read stdin to data. + * + * @param data Raw information to store. + * @param max_size Maximum size can be stored to data. + * @return data length if success or -1 on error. + */ +int get_panic_input(char *data, size_t max_size); + +#endif /* EC_PANICINFO_H */ |