Lines Matching defs:dconfig
81 struct push_notification_driver_ox_config *dconfig;
91 dconfig = p_new(pool, struct push_notification_driver_ox_config, 1);
94 &dconfig->http_url, &error) < 0) {
99 dconfig->use_unsafe_username =
106 dconfig->cached_ox_metadata_lifetime_secs = DEFAULT_CACHE_LIFETIME_SECS;
107 else if (settings_get_time(tmp, &dconfig->cached_ox_metadata_lifetime_secs, &error) < 0) {
115 (str_to_uint(tmp, &dconfig->http_max_retries) < 0)) {
116 dconfig->http_max_retries = DEFAULT_RETRY_COUNT;
120 (str_to_uint(tmp, &dconfig->http_timeout_msecs) < 0)) {
121 dconfig->http_timeout_msecs = DEFAULT_TIMEOUT_MSECS;
126 dconfig->cached_ox_metadata_lifetime_secs);
134 *context = dconfig;
142 struct push_notification_driver_ox_config *dconfig = dtxn->duser->context;
149 if ((dconfig->cached_ox_metadata != NULL) &&
150 ((dconfig->cached_ox_metadata_timestamp +
151 (time_t)dconfig->cached_ox_metadata_lifetime_secs) > ioloop_time)) {
152 return dconfig->cached_ox_metadata;
183 i_free(dconfig->cached_ox_metadata);
184 dconfig->cached_ox_metadata = i_strdup(attr.value);
185 dconfig->cached_ox_metadata_timestamp = ioloop_time;
187 return dconfig->cached_ox_metadata;
333 struct push_notification_driver_ox_config *dconfig =
354 push_notification_driver_ox_init_global(user, dconfig);
357 dconfig->http_url,
366 json_append_escaped(str, dconfig->use_unsafe_username ?
406 struct push_notification_driver_ox_config *dconfig = duser->context;
408 i_free(dconfig->cached_ox_metadata);