<?xml version="1.0"?>
<!--
###################################################
## PDU Filter
###################################################
 -->
<block>
	<name>PDU Filter</name>
	<key>blocks_pdu_filter</key>
	<import>from gnuradio import blocks</import>
	<import>import pmt</import>
	<make>blocks.pdu_filter($k, $v, $invert)</make>
	<callback>set_key($k)</callback>
	<callback>set_val($v)</callback>
	<callback>set_inversion($invert)</callback>
	<param>
		<name>Key</name>
		<key>k</key>
		<value>pmt.intern("key")</value>
		<type>raw</type>
	</param>
	<param>
		<name>Value</name>
		<key>v</key>
		<value>pmt.intern("value")</value>
		<type>raw</type>
	</param>
    <param>
        <name>Invert Filter</name>
        <key>invert</key>
        <value>False</value>
        <type>bool</type>
        <option>
            <name>No</name>
            <key>False</key>
        </option>
        <option>
            <name>Yes</name>
            <key>True</key>
        </option>
    </param>
	<sink>
		<name>pdus</name>
		<type>message</type>
        <optional>1</optional>
	</sink>
	<source>
		<name>pdus</name>
		<type>message</type>
        <optional>1</optional>
	</source>
</block>
