1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
#
# Copyright 2021 Jacob Gilbert
#
# This file is part of GNU Radio
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
#
'''
Compatibility layer for transition to gr-pdu. Scheduled for removal in 3.11.
'''
from gnuradio import gr, network, pdu
######## PDU BLOCKS MOVED TO GR-PDU ########
class pdu_filter(pdu.pdu_filter):
def __init__(self, *args, **kwargs):
gr.log.warn('`pdu_filter` has moved to gr-pdu and will be removed from gr-blocks soon. Please update to use pdu.pdu_filter()')
pdu.pdu_filter.__init__(self, *args, **kwargs)
class pdu_remove(pdu.pdu_remove):
def __init__(self, *args, **kwargs):
gr.log.warn('`pdu_remove` has moved to gr-pdu and will be removed from gr-blocks soon. Please update to use pdu.pdu_remove()')
pdu.pdu_remove.__init__(self, *args, **kwargs)
class pdu_set(pdu.pdu_set):
def __init__(self, *args, **kwargs):
gr.log.warn('`pdu_set` has moved to gr-pdu and will be removed from gr-blocks soon. Please update to use pdu.pdu_set()')
pdu.pdu_set.__init__(self, *args, **kwargs)
class pdu_to_tagged_stream(pdu.pdu_to_tagged_stream):
def __init__(self, *args, **kwargs):
gr.log.warn('`pdu_to_tagged_stream` has moved to gr-pdu and will be removed from gr-blocks soon. Please update to use pdu.pdu_to_tagged_stream()')
pdu.pdu_to_tagged_stream.__init__(self, *args, **kwargs)
class random_pdu(pdu.random_pdu):
def __init__(self, *args, **kwargs):
gr.log.warn('`random_pdu` has moved to gr-pdu and will be removed from gr-blocks soon. Please update to use pdu.random_pdu()')
pdu.random_pdu.__init__(self, *args, **kwargs)
class tagged_stream_to_pdu(pdu.tagged_stream_to_pdu):
def __init__(self, *args, **kwargs):
gr.log.warn('`tagged_stream_to_pdu` has moved to gr-pdu and will be removed from gr-blocks soon. Please update to use pdu.tagged_stream_to_pdu()')
pdu.tagged_stream_to_pdu.__init__(self, *args, **kwargs)
######## PDU BLOCKS MOVED TO GR-NETWORK ########
class socket_pdu(network.socket_pdu):
def __init__(self, *args, **kwargs):
gr.log.warn('`socket_pdu` has moved to gr-network and will be removed from gr-blocks soon. Please update to use network.socket_pdu()')
network.socket_pdu.__init__(self, *args, **kwargs)
class tuntap_pdu(network.tuntap_pdu):
def __init__(self, *args, **kwargs):
gr.log.warn('`tuntap_pdu` has moved to gr-network and will be removed from gr-blocks soon. Please update to use network.tuntap_pdu()')
network.tuntap_pdu.__init__(self, *args, **kwargs)
|