Exemple #1
0
/*
 * Example callback to handle a newly receive configuration.
 */
static void display_config(void* userdata, kvpair_t* conf)
{
    printf("Hey.  I received a new config (userdata: %s):\n",
           (char*)userdata);

    walk_kvpair(conf, NULL, config_visitor);
}
Exemple #2
0
/*
 * Example callback to handle a newly receive configuration.
 */
static conflate_result display_config(void* userdata, kvpair_t* conf)
{
    printf("Hey.  I received a new config (userdata: %s):\n",
           (char*)userdata);

    walk_kvpair(conf, NULL, config_visitor);

    return CONFLATE_SUCCESS;
}