JuliaInterop / Clang.jl

C binding generator and Julia interface to libclang
https://juliainterop.github.io/Clang.jl/
MIT License
219 stars 68 forks source link

generating julia wrapper for C library #434

Closed AbhimanyuAryan closed 1 year ago

AbhimanyuAryan commented 1 year ago

Hi, I am looking at facil: https://github.com/boazsegev/facil.io/tree/master

The directory structure looks like this:

tree -a
.
├── cli
│   ├── fio_cli.c
│   └── fio_cli.h
├── fio.c
├── fio.h
├── fiobj
│   ├── README.md
│   ├── fio_json_parser.h
│   ├── fio_siphash.c
│   ├── fio_siphash.h
│   ├── fio_tmpfile.h
│   ├── fiobj.h
│   ├── fiobj4fio.h
│   ├── fiobj_ary.c
│   ├── fiobj_ary.h
│   ├── fiobj_data.c
│   ├── fiobj_data.h
│   ├── fiobj_hash.c
│   ├── fiobj_hash.h
│   ├── fiobj_json.c
│   ├── fiobj_json.h
│   ├── fiobj_mustache.c
│   ├── fiobj_mustache.h
│   ├── fiobj_numbers.c
│   ├── fiobj_numbers.h
│   ├── fiobj_str.c
│   ├── fiobj_str.h
│   ├── fiobject.c
│   ├── fiobject.h
│   └── mustache_parser.h
├── http
│   ├── README.md
│   ├── http.c
│   ├── http.h
│   ├── http1.c
│   ├── http1.h
│   ├── http_internal.c
│   ├── http_internal.h
│   ├── parsers
│   │   ├── hpack.h
│   │   ├── http1_parser.h
│   │   ├── http_mime_parser.h
│   │   └── websocket_parser.h
│   ├── websockets.c
│   └── websockets.h
├── legacy
│   ├── fio_mem.c
│   └── fio_mem.h
├── redis
│   ├── redis_engine.c
│   ├── redis_engine.h
│   └── resp_parser.h
└── tls
    ├── fio_tls.h
    ├── fio_tls_missing.c
    └── fio_tls_openssl.c

I am not a C expert can you guide me on how to generate a Julia wrapper for Facil? Sadly, I am not able to understand the step mentioned in README.md