Pidl is an Interface Description Language for gobject c-code with automatic language bindings.
The programmer mainly writes a .pidl file and writes .c files containing method implementations. Much gobject boilerplate is hidden.
Typically adding a new method is just adding the signature in the .pidl file, then implement just the c function doing the implementation.
Adding a new property to a (gobject) class is just a matter of adding the type to the pidl file. Thats it.
Adding a signal also only needs the definition.
Language bindings are automatically generated. (Currently for Python, C++ and C#)
The ratio of generated code to handwritten code is in the ballpark of 50 to 1.

PIDLisan是一种接口描述语言,用于GObject C代码,通过编写.pidl文件和实现方法的C文件来减少样板代码的工作量。新增方法或属性只需在.pidl文件中定义,即可自动生成Python、C++及C#等语言的绑定。
215

被折叠的 条评论
为什么被折叠?



