Lines Matching defs:tokens
575 gchar **tokens;
579 tokens = NULL;
584 tokens = g_strsplit_set (line, " \t:", 0);
585 for (i = 0, j = 0; tokens[i] != NULL; i++) {
586 if (strlen (tokens[i]) == 0)
589 strncpy (buf, tokens[i], sizeof (buf));
597 if (tokens != NULL)
598 g_strfreev (tokens);
753 gchar **tokens;
757 tokens = NULL;
762 tokens = g_strsplit_set (line, " \t:", 0);
764 for (i = 0, j = 0; tokens[i] != NULL; i++) {
765 if (strlen (tokens[i]) == 0)
768 hal_device_property_set_bool (d, key, strcmp (tokens[i], expected) == 0);
777 if (tokens != NULL)
778 g_strfreev (tokens);