crate split done
This commit is contained in:
1
clib/.gitignore
vendored
Normal file
1
clib/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/libcsp
|
4219
clib/bindings.rs
Normal file
4219
clib/bindings.rs
Normal file
File diff suppressed because it is too large
Load Diff
2418
clib/bindings.sh
Normal file
2418
clib/bindings.sh
Normal file
File diff suppressed because it is too large
Load Diff
25
clib/cfg/csp/autoconfig.h
Normal file
25
clib/cfg/csp/autoconfig.h
Normal file
@ -0,0 +1,25 @@
|
||||
// This file was auto-generated by the libcsp-cargo-build library
|
||||
#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 16
|
||||
#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 0
|
||||
|
||||
#define CSP_HAVE_LIBSOCKETCAN 0
|
||||
#define CSP_HAVE_LIBZMQ 0
|
3
clib/clone-csp.sh
Executable file
3
clib/clone-csp.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
git clone https://github.com/us-irs/libcsp.git
|
||||
git checkout const-correctness
|
2
clib/gen-bindings.sh
Executable file
2
clib/gen-bindings.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
bindgen --use-core wrapper.h -- "-I./libcsp/include" "-I./cfg" "-I./libcsp/src" > bindings.rs
|
2
clib/wrapper.h
Normal file
2
clib/wrapper.h
Normal file
@ -0,0 +1,2 @@
|
||||
#include "csp/csp.h"
|
||||
#include "csp_conn.h"
|
Reference in New Issue
Block a user