Lines Matching refs:_plugin
38 static _plugin_db_t _plugin[_MAX_PLUGINS]; variable
61 memset(&_plugin[index], 0, sizeof(_plugin_db_t)); in plugin_add()
62 _plugin[index].version = plugin->version; in plugin_add()
63 _plugin[index].plugin = plugin; in plugin_add()
64 _plugin[index].priority = plugin->priority; in plugin_add()
73 strncpy(_plugin[index].mime_types[j++], mt[i], MAX_MIME_LENGTH); in plugin_add()
78 _plugin[index].mime_types[j][0] = 0; in plugin_add()
87 strncpy(_plugin[index].print_formats[j++], pf[i], MAX_MIME_LENGTH); in plugin_add()
92 _plugin[index].print_formats[j][0] = 0; in plugin_add()
106 while (strlen(_plugin[i].print_formats[j])) { in plugin_search()
107 if (strcmp(_plugin[i].print_formats[j], pf) == 0) { in plugin_search()
109 while (strlen(_plugin[i].mime_types[k])) { in plugin_search()
110 if (strcmp(_plugin[i].mime_types[k], mt) == 0) { in plugin_search()
112 use = ((match == NULL) || (_plugin[i].priority < match->priority)); in plugin_search()
114 match = &_plugin[i]; in plugin_search()
143 if ((strcmp(_plugin[i].mime_types[0], _plugin[i].print_formats[0]) == 0) && in plugin_get_passthru_input_formats()
144 (strlen(_plugin[i].print_formats[1]) == 0) in plugin_get_passthru_input_formats()
145 && (strlen(_plugin[i].mime_types[1]) == 0)) { in plugin_get_passthru_input_formats()
146 *input_formats |= plugin_get_mime_type_bit(_plugin[i].mime_types[0]); in plugin_get_passthru_input_formats()