Skip to content

Commit

Permalink
Merge pull request #20 from proman2019/patch-1
Browse files Browse the repository at this point in the history
Update sys.rs
  • Loading branch information
rex-schilasky authored Apr 11, 2024
2 parents a4d6485 + a160060 commit 0ea5dee
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -967,10 +967,12 @@ pub enum eCallState {
#[repr(C)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct SServiceInfoC {
#[doc = "!< service host"]
#[doc = "!< host name"]
pub host_name: *const ::std::os::raw::c_char,
#[doc = "!< service name"]
pub service_name: *const ::std::os::raw::c_char,
#[doc = "!< service id"]
pub service_id: *const ::std::os::raw::c_char,
#[doc = "!< method name"]
pub method_name: *const ::std::os::raw::c_char,
#[doc = "!< error message in case of failure"]
Expand All @@ -979,6 +981,10 @@ pub struct SServiceInfoC {
pub ret_state: ::std::os::raw::c_int,
#[doc = "!< service call state"]
pub call_state: eCallState,
#[doc = "!< response from service call"]
pub response: *const ::std::os::raw::c_char,
#[doc = "!< response length"]
pub response_len: ::std::os::raw::c_int
}

impl Default for SServiceInfoC {
Expand Down Expand Up @@ -1120,23 +1126,25 @@ extern "C" {
#[doc = " @param method_name_ Method name."]
#[doc = " @param request_ Request message buffer."]
#[doc = " @param request_len_ Request message length."]
#[doc = " @param timeout Request timeout in milliseconds."]
#[doc = ""]
#[doc = " @return None zero if succeeded."]
pub fn eCAL_Client_Call(
handle_: ECAL_HANDLE,
method_name_: *const ::std::os::raw::c_char,
request_: *const ::std::os::raw::c_char,
request_len_: ::std::os::raw::c_int,
time_out_: ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[doc = " @brief Call method of this service (blocking variant with timeout)."]
#[doc = ""]
#[doc = " @param handle_ Client handle."]
#[doc = " @param host_name_ Host name."]
#[doc = " @param method_name_ Method name."]
#[doc = " @param request_ Request message buffer."]
#[doc = " @param request_len_ Request message length."]
#[doc = " @param timeout_ timeout in milliseconds."]
#[doc = " @param [out] service_info_ Service info struct with additional infos like call state and"]
#[doc = " error message."]
#[doc = " @param [out] response_ Pointer to the allocated buffer for the response message."]
Expand All @@ -1146,10 +1154,10 @@ extern "C" {
#[doc = " @return Size of response buffer if succeeded, otherwise zero."]
pub fn eCAL_Client_Call_Wait(
handle_: ECAL_HANDLE,
host_name_: *const ::std::os::raw::c_char,
method_name_: *const ::std::os::raw::c_char,
request_: *const ::std::os::raw::c_char,
request_len_: ::std::os::raw::c_int,
time_out_: ::std::os::raw::c_long,
service_info_: *mut SServiceInfoC,
response_: *mut ::std::os::raw::c_void,
response_len_: ::std::os::raw::c_int,
Expand Down Expand Up @@ -1883,4 +1891,4 @@ mod tests {
)
);
}
}
}

0 comments on commit 0ea5dee

Please sign in to comment.