-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6d30d9
commit 18c9935
Showing
90 changed files
with
1,603 additions
and
430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
use dbn::{ | ||
compat::{InstrumentDefMsgV2, SymbolMappingMsgV2}, | ||
compat::{InstrumentDefMsgV1, SymbolMappingMsgV1}, | ||
InstrumentDefMsg, SymbolMappingMsg, | ||
}; | ||
|
||
/// Converts an V1 InstrumentDefMsg to V2. | ||
#[no_mangle] | ||
pub extern "C" fn from_instrument_def_v1_to_v2(def_v1: &InstrumentDefMsg) -> InstrumentDefMsgV2 { | ||
InstrumentDefMsgV2::from(def_v1) | ||
pub extern "C" fn from_instrument_def_v1_to_v2(def_v1: &InstrumentDefMsgV1) -> InstrumentDefMsg { | ||
InstrumentDefMsg::from(def_v1) | ||
} | ||
|
||
/// Converts an V1 SymbolMappingMsg to V2. | ||
#[no_mangle] | ||
pub extern "C" fn from_symbol_mapping_v1_to_v2(def_v1: &SymbolMappingMsg) -> SymbolMappingMsgV2 { | ||
SymbolMappingMsgV2::from(def_v1) | ||
pub extern "C" fn from_symbol_mapping_v1_to_v2(def_v1: &SymbolMappingMsgV1) -> SymbolMappingMsg { | ||
SymbolMappingMsg::from(def_v1) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.