[zeromq-dev] [zproject] mkapi.py: Generate API model from header

Arnaud Loonstra arnaud at sphaero.org
Sun Dec 20 15:43:56 CET 2015


Do I understand this correctly that this is the reverse path of 
zproject?
I.e. it generates zproject xmls from a C header so you can then use
zproject's functionality (ie Python binding?)

Rg,

Arnaud

On 2015-12-20 15:22, Pieter Hintjens wrote:
> This is neat. Have you tried it on other projects? There are still a
> couple of classes in CZMQ that aren't covered by zproject models
> (zrex, zlistx, zdigest, zclock). Might be good test cases.
>
> Also, if you want to move this inside zproject feel free to do that.
>
> -Pieter
>
> On Sun, Dec 20, 2015 at 2:17 PM, Michal Vyskocil
> <michal.vyskocil at gmail.com> wrote:
>> Hi,
>>
>> I wrote a simple tool, which generates zproject API model from
>> declarations in header files.
>>
>> https://github.com/vyskocilm/mkapi
>>
>> My idea is there are more developers willing to learn CLASS and 
>> write
>> C declarations than those who will learn zproject API model. So 
>> having
>> API model generated can lower the barrier for developers.
>>
>> I used on czmq header files, where it seems the tools works pretty
>> well. I have omited to support polymorphic type (tests consider it 
>> as
>> singleton) and maybe there are smaller bugs related to type 
>> mappings.
>> But in general it works pretty well.
>>
>> --
>> best regards
>>      Michal Vyskocil
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev




More information about the zeromq-dev mailing list