static void config_set_defaults(void) { mrp_clear(&ctx); ctx.log_mask = MRP_LOG_UPTO(MRP_LOG_INFO); ctx.log_target = MRP_LOG_TO_STDOUT; ctx.framed = TRUE; }
static void config_set_defaults(context_t *ctx) { mrp_clear(ctx); ctx->busaddr = "session"; ctx->server = FALSE; ctx->log_mask = MRP_LOG_UPTO(MRP_LOG_DEBUG); ctx->log_target = MRP_LOG_TO_STDERR; }
static void config_set_defaults(ripncode_t *r, const char *argv0) { mrp_clear(r); r->argv0 = argv0; r->device = "/dev/cdrom"; r->driver = "linux"; r->log_mask = MRP_LOG_UPTO(MRP_LOG_WARNING); r->log_target = "stdout"; mrp_log_set_mask(r->log_mask); mrp_log_set_target(r->log_target); }
static void config_set_defaults(test_config_t *cfg) { mrp_clear(cfg); cfg->nio = 5; cfg->ntimer = 10; cfg->nsignal = 5; cfg->ngio = 5; cfg->ngtimer = 10; cfg->ndbus_method = 10; cfg->ndbus_signal = 10; cfg->log_mask = MRP_LOG_UPTO(MRP_LOG_DEBUG); cfg->log_target = MRP_LOG_TO_STDERR; cfg->wlpf = 1750; cfg->wfrc = 5000; cfg->runtime = DEFAULT_RUNTIME; }