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"); }
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); }