@@ -15,6 +15,10 @@ static void rtpp_stream_get_actor_fin(void *pub) {
1515 fprintf (stderr , "Method rtpp_stream@%p::get_actor (rtpp_stream_get_actor) is invoked after destruction\x0a" , pub );
1616 RTPP_AUTOTRAP ();
1717}
18+ static void rtpp_stream_get_packetport_fin (void * pub ) {
19+ fprintf (stderr , "Method rtpp_stream@%p::get_packetport (rtpp_stream_get_packetport) is invoked after destruction\x0a" , pub );
20+ RTPP_AUTOTRAP ();
21+ }
1822static void rtpp_stream_get_proto_fin (void * pub ) {
1923 fprintf (stderr , "Method rtpp_stream@%p::get_proto (rtpp_stream_get_proto) is invoked after destruction\x0a" , pub );
2024 RTPP_AUTOTRAP ();
@@ -91,17 +95,26 @@ static void rtpp_stream_send_pkt_to_fin(void *pub) {
9195 fprintf (stderr , "Method rtpp_stream@%p::send_pkt_to (rtpp_stream_send_pkt_to) is invoked after destruction\x0a" , pub );
9296 RTPP_AUTOTRAP ();
9397}
98+ static void rtpp_stream_set_packetport_fin (void * pub ) {
99+ fprintf (stderr , "Method rtpp_stream@%p::set_packetport (rtpp_stream_set_packetport) is invoked after destruction\x0a" , pub );
100+ RTPP_AUTOTRAP ();
101+ }
94102static void rtpp_stream_set_skt_fin (void * pub ) {
95103 fprintf (stderr , "Method rtpp_stream@%p::set_skt (rtpp_stream_set_skt) is invoked after destruction\x0a" , pub );
96104 RTPP_AUTOTRAP ();
97105}
106+ static void rtpp_stream_unreg_fin (void * pub ) {
107+ fprintf (stderr , "Method rtpp_stream@%p::unreg (rtpp_stream_unreg) is invoked after destruction\x0a" , pub );
108+ RTPP_AUTOTRAP ();
109+ }
98110static void rtpp_stream_update_skt_fin (void * pub ) {
99111 fprintf (stderr , "Method rtpp_stream@%p::update_skt (rtpp_stream_update_skt) is invoked after destruction\x0a" , pub );
100112 RTPP_AUTOTRAP ();
101113}
102114static const struct rtpp_stream_smethods rtpp_stream_smethods_fin = {
103115 .finish_playback = (rtpp_stream_finish_playback_t )& rtpp_stream_finish_playback_fin ,
104116 .get_actor = (rtpp_stream_get_actor_t )& rtpp_stream_get_actor_fin ,
117+ .get_packetport = (rtpp_stream_get_packetport_t )& rtpp_stream_get_packetport_fin ,
105118 .get_proto = (rtpp_stream_get_proto_t )& rtpp_stream_get_proto_fin ,
106119 .get_rem_addr = (rtpp_stream_get_rem_addr_t )& rtpp_stream_get_rem_addr_fin ,
107120 .get_sender = (rtpp_stream_get_sender_t )& rtpp_stream_get_sender_fin ,
@@ -121,12 +134,15 @@ static const struct rtpp_stream_smethods rtpp_stream_smethods_fin = {
121134 .rx = (rtpp_stream_rx_t )& rtpp_stream_rx_fin ,
122135 .send_pkt = (rtpp_stream_send_pkt_t )& rtpp_stream_send_pkt_fin ,
123136 .send_pkt_to = (rtpp_stream_send_pkt_to_t )& rtpp_stream_send_pkt_to_fin ,
137+ .set_packetport = (rtpp_stream_set_packetport_t )& rtpp_stream_set_packetport_fin ,
124138 .set_skt = (rtpp_stream_set_skt_t )& rtpp_stream_set_skt_fin ,
139+ .unreg = (rtpp_stream_unreg_t )& rtpp_stream_unreg_fin ,
125140 .update_skt = (rtpp_stream_update_skt_t )& rtpp_stream_update_skt_fin ,
126141};
127142void rtpp_stream_fin (struct rtpp_stream * pub ) {
128143 RTPP_DBG_ASSERT (pub -> smethods -> finish_playback != (rtpp_stream_finish_playback_t )NULL );
129144 RTPP_DBG_ASSERT (pub -> smethods -> get_actor != (rtpp_stream_get_actor_t )NULL );
145+ RTPP_DBG_ASSERT (pub -> smethods -> get_packetport != (rtpp_stream_get_packetport_t )NULL );
130146 RTPP_DBG_ASSERT (pub -> smethods -> get_proto != (rtpp_stream_get_proto_t )NULL );
131147 RTPP_DBG_ASSERT (pub -> smethods -> get_rem_addr != (rtpp_stream_get_rem_addr_t )NULL );
132148 RTPP_DBG_ASSERT (pub -> smethods -> get_sender != (rtpp_stream_get_sender_t )NULL );
@@ -146,7 +162,9 @@ void rtpp_stream_fin(struct rtpp_stream *pub) {
146162 RTPP_DBG_ASSERT (pub -> smethods -> rx != (rtpp_stream_rx_t )NULL );
147163 RTPP_DBG_ASSERT (pub -> smethods -> send_pkt != (rtpp_stream_send_pkt_t )NULL );
148164 RTPP_DBG_ASSERT (pub -> smethods -> send_pkt_to != (rtpp_stream_send_pkt_to_t )NULL );
165+ RTPP_DBG_ASSERT (pub -> smethods -> set_packetport != (rtpp_stream_set_packetport_t )NULL );
149166 RTPP_DBG_ASSERT (pub -> smethods -> set_skt != (rtpp_stream_set_skt_t )NULL );
167+ RTPP_DBG_ASSERT (pub -> smethods -> unreg != (rtpp_stream_unreg_t )NULL );
150168 RTPP_DBG_ASSERT (pub -> smethods -> update_skt != (rtpp_stream_update_skt_t )NULL );
151169 RTPP_DBG_ASSERT (pub -> smethods != & rtpp_stream_smethods_fin &&
152170 pub -> smethods != NULL );
@@ -176,6 +194,7 @@ rtpp_stream_fintest()
176194 static const struct rtpp_stream_smethods dummy = {
177195 .finish_playback = (rtpp_stream_finish_playback_t )((void * )0x1 ),
178196 .get_actor = (rtpp_stream_get_actor_t )((void * )0x1 ),
197+ .get_packetport = (rtpp_stream_get_packetport_t )((void * )0x1 ),
179198 .get_proto = (rtpp_stream_get_proto_t )((void * )0x1 ),
180199 .get_rem_addr = (rtpp_stream_get_rem_addr_t )((void * )0x1 ),
181200 .get_sender = (rtpp_stream_get_sender_t )((void * )0x1 ),
@@ -195,7 +214,9 @@ rtpp_stream_fintest()
195214 .rx = (rtpp_stream_rx_t )((void * )0x1 ),
196215 .send_pkt = (rtpp_stream_send_pkt_t )((void * )0x1 ),
197216 .send_pkt_to = (rtpp_stream_send_pkt_to_t )((void * )0x1 ),
217+ .set_packetport = (rtpp_stream_set_packetport_t )((void * )0x1 ),
198218 .set_skt = (rtpp_stream_set_skt_t )((void * )0x1 ),
219+ .unreg = (rtpp_stream_unreg_t )((void * )0x1 ),
199220 .update_skt = (rtpp_stream_update_skt_t )((void * )0x1 ),
200221 };
201222 tp -> pub .smethods = & dummy ;
@@ -204,6 +225,7 @@ rtpp_stream_fintest()
204225 RTPP_OBJ_DECREF (& (tp -> pub ));
205226 CALL_TFIN (& tp -> pub , finish_playback );
206227 CALL_TFIN (& tp -> pub , get_actor );
228+ CALL_TFIN (& tp -> pub , get_packetport );
207229 CALL_TFIN (& tp -> pub , get_proto );
208230 CALL_TFIN (& tp -> pub , get_rem_addr );
209231 CALL_TFIN (& tp -> pub , get_sender );
@@ -223,9 +245,11 @@ rtpp_stream_fintest()
223245 CALL_TFIN (& tp -> pub , rx );
224246 CALL_TFIN (& tp -> pub , send_pkt );
225247 CALL_TFIN (& tp -> pub , send_pkt_to );
248+ CALL_TFIN (& tp -> pub , set_packetport );
226249 CALL_TFIN (& tp -> pub , set_skt );
250+ CALL_TFIN (& tp -> pub , unreg );
227251 CALL_TFIN (& tp -> pub , update_skt );
228- assert ((_naborts - naborts_s ) == 23 );
252+ assert ((_naborts - naborts_s ) == 26 );
229253}
230254DATA_SET (rtpp_fintests , rtpp_stream_fintest );
231255#endif /* RTPP_FINTEST */
0 commit comments