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