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 <[email protected]> wrote:

> You can call ninputs() and noutputs() on (or from within) a block.
>
> On Tue, Jan 23, 2018 at 12:49 PM, Markus Wirsing <
> [email protected]> 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
>> [email protected]
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>
>
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to