Skip to content

Commit

Permalink
fix: ffi renames
Browse files Browse the repository at this point in the history
  • Loading branch information
lidatong committed Aug 15, 2023
1 parent fb4265b commit c4f5e00
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ffi/rust/firedancer-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fn main() {
.clang_arg(format!("-I{prefix}/"))
.header(&format!("wrapper_{lib}.h"))
.blocklist_type("schar|uchar|ushort|uint|ulong")
.blocklist_item("SORT_QUICK_ORDER_STYLE|SORT_MERGE_THRESH|SORT_QUICK_THRESH|SORT_QUICK_ORDER_STYLE|SORT_QUICK_SWAP_MINIMIZE");
.blocklist_item("SORT_QUICK_ORDER_STYLE|SORT_MERGE_THRESH|SORT_QUICK_THRESH|SORT_QUICK_ORDER_STYLE|SORT_QUICK_SWAP_MINIMIZE|MAP_MEMOIZE|MAP_QUERY_OPT|MAP_KEY_EQUAL_IS_SLOW");

// Well this is a complete mess. We want to only include, say, functions
// declared in the `ballet` directory in the ballet bindgen output. If
Expand Down
2 changes: 2 additions & 0 deletions ffi/rust/firedancer-sys/src/tango/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ mod fseq;
mod mcache;
mod tcache;
mod xdp;
mod stake;

pub use cnc::*;
pub use dcache::*;
Expand All @@ -13,3 +14,4 @@ pub use fseq::*;
pub use mcache::*;
pub use tcache::*;
pub use xdp::*;
pub use stake::*;
2 changes: 1 addition & 1 deletion ffi/rust/firedancer-sys/src/tango/stake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub use crate::generated::{
fd_stake_new,
fd_stake_version,
fd_stake_version_laddr,
fd_stake_write,
fd_stake_deser,
fd_stake_read,
fd_stake_dump,
FD_STAKE_ALIGN
Expand Down
1 change: 1 addition & 0 deletions src/tango/fd_tango.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "dcache/fd_dcache.h" /* Includes fd_tango_base.h */
#include "tcache/fd_tcache.h" /* Includes fd_tango_base.h */
#include "aio/fd_aio.h" /* Includes fd_tango_base.h */
#include "stake/fd_stake.h" /* Includes fd_tango_base.h */

#endif /* HEADER_fd_src_tango_fd_tango_h */

0 comments on commit c4f5e00

Please sign in to comment.