diff options
Diffstat (limited to 'includes/dt_util.h')
-rw-r--r-- | includes/dt_util.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/dt_util.h b/includes/dt_util.h index acc4ad16..b4506d19 100644 --- a/includes/dt_util.h +++ b/includes/dt_util.h @@ -40,7 +40,7 @@ typedef uint32_t dt_uint; /* big-endian */ typedef struct _dtr dtr; typedef struct _dtr_obj dtr_obj; -dtr *dtr_new(char *base_path); /* NULL for DTR_ROOT */ +dtr *dtr_new(const char *base_path); /* NULL for DTR_ROOT */ void dtr_free(dtr *); int dtr_was_found(dtr *); const char *dtr_base_path(dtr *); @@ -77,6 +77,9 @@ char *dtr_maps_info(dtr *); /* returns hardinfo shell section */ const char *dtr_find_device_tree_root(void); +/* write to the message log */ +void dtr_msg(dtr *s, char *fmt, ...); + #define sp_sep(STR) (strlen(STR) ? " " : "") /* appends an element to a string, adding a space if * the string is not empty. |