Those calls are in the block details, so you might have to call something
like detail().ninputs().

On Tue, Jan 23, 2018 at 1:22 PM, Jeff Long <willco...@gmail.com> wrote:

> You can call ninputs() and noutputs() on (or from within) a block.
>
> On Tue, Jan 23, 2018 at 12:49 PM, Markus Wirsing <
> markus.wirs...@uni-ulm.de> wrote:
>
>> Hello,
>>
>> I was wondering, whether it's possible to write a hierarchical block
>> that does not have a fixed number of inputs.
>>
>> Of course I can specify the io_signature appropriately.
>> But it seems like the only way to determine the number of actual
>> connected inputs is to look at the parameters that are given to the work
>> function, which doesn't make sense for a hierarchical block. Or am I
>> missing another way?
>>
>> Markus
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>
>
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to