예제 #1
0
파일: rtp.c 프로젝트: 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");
}
예제 #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);
}