src/flb_router.c
static int flb_router_connect(struct flb_input_instance *in,
                              struct flb_output_instance *out)
{
    struct flb_router_path *p;

    p = flb_malloc(sizeof(struct flb_router_path));
    if (!p) {
        flb_errno();
        return -1;
    }

    p->ins = out;
    mk_list_add(&p->_head, &in->routes);

    return 0;
}
/* Associate and input and output instances due to a previous match */
Associate and input and output instances due to a previous match
Associate and input and output instances due to a previous match
static int flb_router_connect(struct flb_input_instance *in,
                              struct flb_output_instance *out)
{
    struct flb_router_path *p;
    p = flb_malloc(sizeof(struct flb_router_path));
    if (!p) {
        flb_errno();
        return -1;
    }
    p->ins = out;
    mk_list_add(&p->_head, &in->routes);
    return 0;
}
static int flb_router_connect ( struct flb_input_instance * in , struct flb_output_instance * out ) { struct flb_router_path * p ; p = flb_malloc ( sizeof ( struct flb_router_path ) ) ; if ( ! p ) { flb_errno ( ) ; return -1 ; } p -> ins = out ; mk_list_add ( & p -> _head , & in -> routes ) ; return 0 ; }
Associate and input and output instances due to a previous match
Associate and input and output instances due to a previous match