diff options
author | Bert Belder <bertbelder@gmail.com> | 2018-07-08 02:45:16 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2018-07-08 21:01:24 +0200 |
commit | 8a17db8266dad0325d04762a27c4f61446d26d2e (patch) | |
tree | 7fca8ff2d7936b11d38c0edc972012540580b12e /src/handlers.rs | |
parent | 7c5db007deb43d65550213ff07ad95bc0cce6f00 (diff) |
Add 'command id' field to messages
This allows for correlating response messages to the command message that
caused them.
Diffstat (limited to 'src/handlers.rs')
-rw-r--r-- | src/handlers.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/handlers.rs b/src/handlers.rs index 405fe29da..2b8e51602 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -17,6 +17,7 @@ fn test_example() { #[no_mangle] pub extern "C" fn handle_code_fetch( + cmd_id: u32, module_specifier: *const c_char, containing_file: *const c_char, ) { @@ -24,8 +25,10 @@ pub extern "C" fn handle_code_fetch( let containing_file = string_from_ptr(containing_file); println!( - "handle_code_fetch. module_specifier = {} containing_file = {}", - module_specifier, containing_file + "handle_code_fetch. cmd_id = {} module_specifier = {} containing_file = {}", + cmd_id, + module_specifier, + containing_file ); unimplemented!(); |