Lines Matching refs:patterns
35 GPtrArray *patterns; member
56 self->patterns = NULL; in G_DEFINE_TYPE()
81 GPtrArray *patterns; in parse_pattern_files() local
84 patterns = g_ptr_array_new(); in parse_pattern_files()
152 g_ptr_array_add (patterns, pat); in parse_pattern_files()
168 return patterns; in parse_pattern_files()
256 fakemodem->patterns = parse_pattern_files (pattern_files, &err); in main()
257 if (fakemodem->patterns == NULL) { in main()
263 fakemodem->patterns = g_ptr_array_sized_new (0); in main()
485 for (i = 0 ; i < fakemodem->patterns->len; i++) { in handle_cmd()
486 pat = (Pattern *)g_ptr_array_index (fakemodem->patterns, i); in handle_cmd()
492 if (i == fakemodem->patterns->len) in handle_cmd()
534 for (i = 0 ; i < fakemodem->patterns->len; i++) { in set_response()
535 pat = (Pattern *)g_ptr_array_index (fakemodem->patterns, i); in set_response()
545 if (i == fakemodem->patterns->len) { in set_response()
562 g_ptr_array_add (fakemodem->patterns, pat); in set_response()
576 for (i = 0 ; i < fakemodem->patterns->len; i++) { in remove_response()
577 pat = (Pattern *)g_ptr_array_index (fakemodem->patterns, i); in remove_response()
579 g_ptr_array_remove_index (fakemodem->patterns, i); in remove_response()