-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow multiple versions of the Cyclors library to be loaded simultane…
…ously on Linux systems. (#26)
- Loading branch information
Showing
5 changed files
with
234 additions
and
40 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* Additional wrapper functions for select exported inline functions */ | ||
|
||
extern "C" { | ||
#[link_name = "<prefix>ddsi_serdata_size"] | ||
pub fn ddsi_serdata_size(d: *const ddsi_serdata) -> u32; | ||
} | ||
extern "C" { | ||
#[link_name = "<prefix>ddsi_serdata_to_ser_ref"] | ||
pub fn ddsi_serdata_to_ser_ref( | ||
d: *const ddsi_serdata, | ||
off: usize, | ||
sz: usize, | ||
ref_: *mut ddsrt_iovec_t, | ||
) -> *mut ddsi_serdata; | ||
} | ||
extern "C" { | ||
#[link_name = "<prefix>ddsi_serdata_unref"] | ||
pub fn ddsi_serdata_unref(serdata: *mut ddsi_serdata); | ||
} | ||
extern "C" { | ||
#[link_name = "<prefix>ddsi_serdata_to_ser_unref"] | ||
pub fn ddsi_serdata_to_ser_unref(d: *mut ddsi_serdata, ref_: *const ddsrt_iovec_t); | ||
} | ||
extern "C" { | ||
#[link_name = "<prefix>ddsi_serdata_from_ser_iov"] | ||
pub fn ddsi_serdata_from_ser_iov( | ||
type_: *const ddsi_sertype, | ||
kind: ddsi_serdata_kind, | ||
niov: ddsrt_msg_iovlen_t, | ||
iov: *const ddsrt_iovec_t, | ||
size: usize, | ||
) -> *mut ddsi_serdata; | ||
} | ||
extern "C" { | ||
#[link_name = "<prefix>ddsi_serdata_from_sample"] | ||
pub fn ddsi_serdata_from_sample( | ||
type_: *const ddsi_sertype, | ||
kind: ddsi_serdata_kind, | ||
sample: *const ::std::os::raw::c_void, | ||
) -> *mut ddsi_serdata; | ||
} |
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