Exemplo n.º 1
0
/**
 * Proxy async call to config_callback
 */
static void async_refresh(void *arg)
{
    /** Get the best configuration and run stuff.. */
    struct lcb_BOOTSTRAP *bs = arg;
    clconfig_info *info;

    info = lcb_confmon_get_config(bs->parent->confmon);
    config_callback(&bs->listener, CLCONFIG_EVENT_GOT_NEW_CONFIG, info);
}
Exemplo n.º 2
0
/**
 * Proxy async call to config_callback
 */
static void async_refresh(lcb_timer_t timer, lcb_t unused, const void *cookie)
{
    /** Get the best configuration and run stuff.. */
    struct lcb_bootstrap_st *bs = (struct lcb_bootstrap_st *)cookie;
    clconfig_info *info;

    info = lcb_confmon_get_config(bs->parent->confmon);
    config_callback(&bs->listener, CLCONFIG_EVENT_GOT_NEW_CONFIG, info);

    (void)unused;
    (void)timer;
}