dedicated folder for generating bindings
This commit is contained in:
2
lib/.gitignore
vendored
Normal file
2
lib/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/libcsp
|
||||
/cfg/csp/autoconfig.h
|
2418
lib/bindings.rs
Normal file
2418
lib/bindings.rs
Normal file
File diff suppressed because it is too large
Load Diff
2418
lib/bindings.sh
Normal file
2418
lib/bindings.sh
Normal file
File diff suppressed because it is too large
Load Diff
25
lib/cfg/csp/template_autoconfig.h
Normal file
25
lib/cfg/csp/template_autoconfig.h
Normal 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
2
lib/gen-bindings.sh
Executable 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
1
lib/wrapper.h
Normal file
@ -0,0 +1 @@
|
||||
#include "csp/csp.h"
|
Reference in New Issue
Block a user