dedicated folder for generating bindings

This commit is contained in:
2024-05-29 18:39:54 +02:00
parent a29ff4e041
commit 564a8f498d
19 changed files with 5629 additions and 44 deletions

2
lib/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/libcsp
/cfg/csp/autoconfig.h

2418
lib/bindings.rs Normal file

File diff suppressed because it is too large Load Diff

2418
lib/bindings.sh Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,25 @@
#define CSP_POSIX 1
#define CSP_ZEPHYR 0
#define CSP_HAVE_STDIO 1
#define CSP_ENABLE_CSP_PRINT 1
#define CSP_PRINT_STDIO 1
#define CSP_REPRODUCIBLE_BUILDS 0
#define CSP_QFIFO_LEN 15
#define CSP_PORT_MAX_BIND 16
#define CSP_CONN_RXQUEUE_LEN 16
#define CSP_CONN_MAX 8
#define CSP_BUFFER_SIZE 256
#define CSP_BUFFER_COUNT 15
#define CSP_RDP_MAX_WINDOW 5
#define CSP_RTABLE_SIZE 10
#define CSP_USE_RDP 1
#define CSP_USE_HMAC 1
#define CSP_USE_PROMISC 1
#define CSP_USE_RTABLE 1
#define CSP_HAVE_LIBSOCKETCAN 0
#define CSP_HAVE_LIBZMQ 1

2
lib/gen-bindings.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
bindgen --use-core wrapper.h -- "-I./libcsp/include" "-I./cfg" > bindings.rs

1
lib/wrapper.h Normal file
View File

@ -0,0 +1 @@
#include "csp/csp.h"