@@ -15,6 +15,14 @@ static void rtpp_socket_drain_fin(void *pub) {
1515 fprintf (stderr , "Method rtpp_socket@%p::drain (rtpp_socket_drain) is invoked after destruction\x0a" , pub );
1616 RTPP_AUTOTRAP ();
1717}
18+ static void rtpp_socket_get_session_link_fin (void * pub ) {
19+ fprintf (stderr , "Method rtpp_socket@%p::get_session_link (rtpp_socket_get_session_link) is invoked after destruction\x0a" , pub );
20+ RTPP_AUTOTRAP ();
21+ }
22+ static void rtpp_socket_get_stream_link_fin (void * pub ) {
23+ fprintf (stderr , "Method rtpp_socket@%p::get_stream_link (rtpp_socket_get_stream_link) is invoked after destruction\x0a" , pub );
24+ RTPP_AUTOTRAP ();
25+ }
1826static void rtpp_socket_get_stuid_fin (void * pub ) {
1927 fprintf (stderr , "Method rtpp_socket@%p::get_stuid (rtpp_socket_get_stuid) is invoked after destruction\x0a" , pub );
2028 RTPP_AUTOTRAP ();
@@ -23,6 +31,14 @@ static void rtpp_socket_getfd_fin(void *pub) {
2331 fprintf (stderr , "Method rtpp_socket@%p::getfd (rtpp_socket_getfd) is invoked after destruction\x0a" , pub );
2432 RTPP_AUTOTRAP ();
2533}
34+ static void rtpp_socket_link_session_fin (void * pub ) {
35+ fprintf (stderr , "Method rtpp_socket@%p::link_session (rtpp_socket_link_session) is invoked after destruction\x0a" , pub );
36+ RTPP_AUTOTRAP ();
37+ }
38+ static void rtpp_socket_link_stream_fin (void * pub ) {
39+ fprintf (stderr , "Method rtpp_socket@%p::link_stream (rtpp_socket_link_stream) is invoked after destruction\x0a" , pub );
40+ RTPP_AUTOTRAP ();
41+ }
2642static void rtpp_socket_rtp_recv_fin (void * pub ) {
2743 fprintf (stderr , "Method rtpp_socket@%p::rtp_recv (rtpp_socket_rtp_recv) is invoked after destruction\x0a" , pub );
2844 RTPP_AUTOTRAP ();
@@ -54,8 +70,12 @@ static void rtpp_socket_settos_fin(void *pub) {
5470static const struct rtpp_socket_smethods rtpp_socket_smethods_fin = {
5571 .bind2 = (rtpp_socket_bind_t )& rtpp_socket_bind_fin ,
5672 .drain = (rtpp_socket_drain_t )& rtpp_socket_drain_fin ,
73+ .get_session_link = (rtpp_socket_get_session_link_t )& rtpp_socket_get_session_link_fin ,
74+ .get_stream_link = (rtpp_socket_get_stream_link_t )& rtpp_socket_get_stream_link_fin ,
5775 .get_stuid = (rtpp_socket_get_stuid_t )& rtpp_socket_get_stuid_fin ,
5876 .getfd = (rtpp_socket_getfd_t )& rtpp_socket_getfd_fin ,
77+ .link_session = (rtpp_socket_link_session_t )& rtpp_socket_link_session_fin ,
78+ .link_stream = (rtpp_socket_link_stream_t )& rtpp_socket_link_stream_fin ,
5979 .rtp_recv = (rtpp_socket_rtp_recv_t )& rtpp_socket_rtp_recv_fin ,
6080 .send_pkt_na = (rtpp_socket_send_pkt_na_t )& rtpp_socket_send_pkt_na_fin ,
6181 .set_stuid = (rtpp_socket_set_stuid_t )& rtpp_socket_set_stuid_fin ,
@@ -67,8 +87,12 @@ static const struct rtpp_socket_smethods rtpp_socket_smethods_fin = {
6787void rtpp_socket_fin (struct rtpp_socket * pub ) {
6888 RTPP_DBG_ASSERT (pub -> smethods -> bind2 != (rtpp_socket_bind_t )NULL );
6989 RTPP_DBG_ASSERT (pub -> smethods -> drain != (rtpp_socket_drain_t )NULL );
90+ RTPP_DBG_ASSERT (pub -> smethods -> get_session_link != (rtpp_socket_get_session_link_t )NULL );
91+ RTPP_DBG_ASSERT (pub -> smethods -> get_stream_link != (rtpp_socket_get_stream_link_t )NULL );
7092 RTPP_DBG_ASSERT (pub -> smethods -> get_stuid != (rtpp_socket_get_stuid_t )NULL );
7193 RTPP_DBG_ASSERT (pub -> smethods -> getfd != (rtpp_socket_getfd_t )NULL );
94+ RTPP_DBG_ASSERT (pub -> smethods -> link_session != (rtpp_socket_link_session_t )NULL );
95+ RTPP_DBG_ASSERT (pub -> smethods -> link_stream != (rtpp_socket_link_stream_t )NULL );
7296 RTPP_DBG_ASSERT (pub -> smethods -> rtp_recv != (rtpp_socket_rtp_recv_t )NULL );
7397 RTPP_DBG_ASSERT (pub -> smethods -> send_pkt_na != (rtpp_socket_send_pkt_na_t )NULL );
7498 RTPP_DBG_ASSERT (pub -> smethods -> set_stuid != (rtpp_socket_set_stuid_t )NULL );
@@ -104,8 +128,12 @@ rtpp_socket_fintest()
104128 static const struct rtpp_socket_smethods dummy = {
105129 .bind2 = (rtpp_socket_bind_t )((void * )0x1 ),
106130 .drain = (rtpp_socket_drain_t )((void * )0x1 ),
131+ .get_session_link = (rtpp_socket_get_session_link_t )((void * )0x1 ),
132+ .get_stream_link = (rtpp_socket_get_stream_link_t )((void * )0x1 ),
107133 .get_stuid = (rtpp_socket_get_stuid_t )((void * )0x1 ),
108134 .getfd = (rtpp_socket_getfd_t )((void * )0x1 ),
135+ .link_session = (rtpp_socket_link_session_t )((void * )0x1 ),
136+ .link_stream = (rtpp_socket_link_stream_t )((void * )0x1 ),
109137 .rtp_recv = (rtpp_socket_rtp_recv_t )((void * )0x1 ),
110138 .send_pkt_na = (rtpp_socket_send_pkt_na_t )((void * )0x1 ),
111139 .set_stuid = (rtpp_socket_set_stuid_t )((void * )0x1 ),
@@ -120,16 +148,20 @@ rtpp_socket_fintest()
120148 RTPP_OBJ_DECREF (& (tp -> pub ));
121149 CALL_TFIN (& tp -> pub , bind2 );
122150 CALL_TFIN (& tp -> pub , drain );
151+ CALL_TFIN (& tp -> pub , get_session_link );
152+ CALL_TFIN (& tp -> pub , get_stream_link );
123153 CALL_TFIN (& tp -> pub , get_stuid );
124154 CALL_TFIN (& tp -> pub , getfd );
155+ CALL_TFIN (& tp -> pub , link_session );
156+ CALL_TFIN (& tp -> pub , link_stream );
125157 CALL_TFIN (& tp -> pub , rtp_recv );
126158 CALL_TFIN (& tp -> pub , send_pkt_na );
127159 CALL_TFIN (& tp -> pub , set_stuid );
128160 CALL_TFIN (& tp -> pub , setnonblock );
129161 CALL_TFIN (& tp -> pub , setrbuf );
130162 CALL_TFIN (& tp -> pub , settimestamp );
131163 CALL_TFIN (& tp -> pub , settos );
132- assert ((_naborts - naborts_s ) == 11 );
164+ assert ((_naborts - naborts_s ) == 15 );
133165}
134166DATA_SET (rtpp_fintests , rtpp_socket_fintest );
135167#endif /* RTPP_FINTEST */
0 commit comments