void sdp_init(void) { log_category_proto_sdp_init(); static struct proto_ops const ops = { .parse = sdp_parse, .parser_new = sdp_parser_new, .parser_del = sdp_parser_del, }; proto_ctor(&proto_sdp_, &ops, "SDP", SDP_TIMEOUT); }
void sdp_init(void) { log_category_proto_sdp_init(); static struct proto_ops const ops = { .parse = sdp_parse, .parser_new = sdp_parser_new, .parser_del = sdp_parser_del, .info_2_str = sdp_info_2_str, .info_addr = sdp_info_addr }; proto_ctor(&proto_sdp_, &ops, "SDP", PROTO_CODE_SDP); }