Lines Matching refs:data
195 data_string ** const data = (data_string **)env->data; in mod_maxminddb_prep_cenv() local
198 if (data[j]->type != TYPE_STRING) { in mod_maxminddb_prep_cenv()
205 buffer *value = &data[j]->value; in mod_maxminddb_prep_cenv()
348 const buffer * const kb, MMDB_entry_data_s * const data) in geoip2_env_set() argument
354 if (!data->has_data || 0 == data->offset) return; in geoip2_env_set()
357 switch (data->type) { in geoip2_env_set()
359 v = data->utf8_string; in geoip2_env_set()
360 vlen = data->data_size; in geoip2_env_set()
363 v = data->boolean ? "1" : "0"; in geoip2_env_set()
367 v = (const char *)data->bytes; in geoip2_env_set()
368 vlen = data->data_size; in geoip2_env_set()
371 vlen = snprintf(buf, sizeof(buf), "%.5f", data->double_value); in geoip2_env_set()
374 vlen = snprintf(buf, sizeof(buf), "%.5f", data->float_value); in geoip2_env_set()
377 vlen = li_itostrn(buf, sizeof(buf), data->int32); in geoip2_env_set()
380 vlen = li_utostrn(buf, sizeof(buf), data->uint32); in geoip2_env_set()
383 vlen = li_utostrn(buf, sizeof(buf), data->uint16); in geoip2_env_set()
387 vlen = li_utostrn(buf, sizeof(buf), data->uint64); in geoip2_env_set()
393 li_tohex_uc(buf+2, sizeof(buf)-2, (char *)data->uint128, 16); in geoip2_env_set()
395 li_tohex_uc(buf+2, sizeof(buf)-2, (char *)&data->uint128, 16); in geoip2_env_set()
415 MMDB_entry_data_s data; in mod_maxminddb_geoip2() local
422 const data_string ** const names = (const data_string **)pconf->env->data; in mod_maxminddb_geoip2()
425 if (MMDB_SUCCESS == MMDB_aget_value(entry, &data, cenv[i]) in mod_maxminddb_geoip2()
426 && data.has_data) { in mod_maxminddb_geoip2()
427 geoip2_env_set(r, env, &names[i]->key, &data); in mod_maxminddb_geoip2()
466 const data_string * const ds = (data_string *)env->data[i]; in REQUEST_FUNC()