Ejemplo n.º 1
0
Archivo: rtp.c Proyecto: krissg/junkie
void rtp_init(void)
{
    log_category_proto_rtp_init();

    static struct proto_ops const ops = {
        .parse      = rtp_parse,
        .parser_new = uniq_parser_new,
        .parser_del = uniq_parser_del,
    };
    uniq_proto_ctor(&uniq_proto_rtp, &ops, "RTP");
}
Ejemplo n.º 2
0
void rtp_init(void)
{
    log_category_proto_rtp_init();

    static struct proto_ops const ops = {
        .parse       = rtp_parse,
        .parser_new  = uniq_parser_new,
        .parser_del  = uniq_parser_del,
        .info_2_str  = rtp_info_2_str,
        .info_addr   = rtp_info_addr
    };
    uniq_proto_ctor(&uniq_proto_rtp, &ops, "RTP", PROTO_CODE_RTP);
}