Lines Matching refs:table
20 * a table of key=value strings, separated by newlines.
29 void planetcore_prepare_table(char *table)
32 if (*table == '\n')
33 *table = 0;
35 table++;
36 } while (*(table - 1) || *table != '\n');
38 *table = 0;
41 const char *planetcore_get_key(const char *table, const char *key)
46 if (!strncmp(table, key, keylen) && table[keylen] == '=')
47 return table + keylen + 1;
49 table += strlen(table) + 1;
50 } while (strlen(table) != 0);
55 int planetcore_get_decimal(const char *table, const char *key, u64 *val)
57 const char *str = planetcore_get_key(table, key);
65 int planetcore_get_hex(const char *table, const char *key, u64 *val)
67 const char *str = planetcore_get_key(table, key);
82 void planetcore_set_mac_addrs(const char *table)
89 if (!planetcore_get_hex(table, PLANETCORE_KEY_MAC_ADDR, &int_addr))
107 void planetcore_set_stdout_path(const char *table)
113 label = planetcore_get_key(table, PLANETCORE_KEY_SERIAL_PORT);
135 void planetcore_set_serial_speed(const char *table)
158 if (!planetcore_get_decimal(table, PLANETCORE_KEY_SERIAL_BAUD,