diff options
Diffstat (limited to 'include/util.h')
-rw-r--r-- | include/util.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h index 8ba25c1780..89e07deb1e 100644 --- a/include/util.h +++ b/include/util.h @@ -158,4 +158,13 @@ int cond_went(cond_t *c, int boolean); static inline int cond_went_false(cond_t *c) { return cond_went(c, 0); } static inline int cond_went_true(cond_t *c) { return cond_went(c, 1); } +/****************************************************************************/ +/* Console command parsing */ + +/* Parse command-line arguments given integer shift value to obtain + * offset and size. + */ +int parse_offset_size(int argc, char **argv, int shift, + int *offset, int *size); + #endif /* __CROS_EC_UTIL_H */ |