Lines Matching full:table
17 * a table of key=value strings, separated by newlines.
26 void planetcore_prepare_table(char *table) in planetcore_prepare_table() argument
29 if (*table == '\n') in planetcore_prepare_table()
30 *table = 0; in planetcore_prepare_table()
32 table++; in planetcore_prepare_table()
33 } while (*(table - 1) || *table != '\n'); in planetcore_prepare_table()
35 *table = 0; in planetcore_prepare_table()
38 const char *planetcore_get_key(const char *table, const char *key) in planetcore_get_key() argument
43 if (!strncmp(table, key, keylen) && table[keylen] == '=') in planetcore_get_key()
44 return table + keylen + 1; in planetcore_get_key()
46 table += strlen(table) + 1; in planetcore_get_key()
47 } while (strlen(table) != 0); in planetcore_get_key()
52 int planetcore_get_decimal(const char *table, const char *key, u64 *val) in planetcore_get_decimal() argument
54 const char *str = planetcore_get_key(table, key); in planetcore_get_decimal()
62 int planetcore_get_hex(const char *table, const char *key, u64 *val) in planetcore_get_hex() argument
64 const char *str = planetcore_get_key(table, key); in planetcore_get_hex()
79 void planetcore_set_mac_addrs(const char *table) in planetcore_set_mac_addrs() argument
86 if (!planetcore_get_hex(table, PLANETCORE_KEY_MAC_ADDR, &int_addr)) in planetcore_set_mac_addrs()
104 void planetcore_set_stdout_path(const char *table) in planetcore_set_stdout_path() argument
110 label = planetcore_get_key(table, PLANETCORE_KEY_SERIAL_PORT); in planetcore_set_stdout_path()