Features of KDirect
Right now, KDirect is capable of:
- Automatically transform enums into corresponding datatypes
- Interfacing abstract C pointers
This perhaps requires a little explanation. What's an abstract C pointer?
It's a pointer to something, when nothing is known about its internals -
to use it, user has to use supplied library functions.
- Interfacing simple C types
A C type (created by typedef) is simple when it can be cast to
integer or bool.
- Interfacing simple C structures - with simple fields
A field is simple when it's either:
- Int
- String
- A simple C type
- Interfacing any C function with simple arguments and simple result.
An Argument/result is simple, when it's:
- Void
- Char
- Int
- C String - null terminated
- Interfaced enum
- Pointer to a simple C structure
- Abstract pointer
- A simple C type
Still not very much.