[misc] Consolidate control file reader (e.g. for pairing credentials) into misc.c

- also remove requirement to enter device name in .remote file
This commit is contained in:
ejurgensen
2017-06-14 23:49:18 +02:00
parent 2676b9bbab
commit 283df8aa72
9 changed files with 114 additions and 372 deletions

View File

@@ -80,6 +80,9 @@ keyval_sort(struct keyval *kv);
char *
m_realpath(const char *pathname);
char **
m_readfile(const char *path, int num_lines);
char *
unicode_fixup_string(char *str, const char *fromcode);