Lines Matching defs:mime_info

279 static void clean_var_rec(var_rec *mime_info)
281 mime_info->sub_req = NULL;
282 mime_info->mime_type = "";
283 mime_info->file_name = "";
284 mime_info->body = 0;
285 mime_info->content_encoding = NULL;
286 mime_info->content_languages = NULL;
287 mime_info->content_charset = "";
288 mime_info->description = "";
290 mime_info->is_pseudo_html = 0;
291 mime_info->level = 0.0f;
292 mime_info->level_matched = 0.0f;
293 mime_info->bytes = -1;
294 mime_info->lang_index = -1;
295 mime_info->mime_stars = 0;
296 mime_info->definite = 1;
298 mime_info->charset_quality = 1.0f;
299 mime_info->encoding_quality = 1.0f;
300 mime_info->lang_quality = 1.0f;
301 mime_info->mime_type_quality = 1.0f;
302 mime_info->source_quality = 0.0f;
309 static void set_mime_fields(var_rec *var, accept_rec *mime_info)
311 var->mime_type = mime_info->name;
312 var->source_quality = mime_info->quality;
313 var->level = mime_info->level;
314 var->content_charset = mime_info->charset;
947 struct var_rec mime_info;
968 clean_var_rec(&mime_info);
986 mime_info.file_name = ap_get_token(neg->pool, &body, 0);
992 set_mime_fields(&mime_info, &accept_info);
1008 mime_info.bytes = number;
1012 mime_info.content_languages = do_languages_line(neg->pool,
1017 mime_info.content_encoding = ap_get_token(neg->pool, &body, 0);
1028 mime_info.description = desc;
1036 if ((mime_info.body = get_body(buffer, &len, tag, *map)) < 0) {
1043 mime_info.bytes = len;
1044 mime_info.file_name = apr_filepath_name_get(rr->filename);
1048 if (*mime_info.file_name && has_content) {
1051 memcpy(new_var, (void *) &mime_info, sizeof(var_rec));
1054 clean_var_rec(&mime_info);
1101 struct var_rec mime_info;
1106 clean_var_rec(&mime_info);
1267 mime_info.sub_req = sub_req;
1268 mime_info.file_name = apr_pstrdup(neg->pool, dirent.name);
1270 mime_info.content_encoding = sub_req->content_encoding;
1273 mime_info.content_languages = sub_req->content_languages;
1277 set_mime_fields(&mime_info, &accept_info);
1280 memcpy(new_var, (void *) &mime_info, sizeof(var_rec));
1284 clean_var_rec(&mime_info);