// File: ads_c_wrap.cpp // Project: ads_wrap // Created Date: 23/03/2021 // Author: Shun Suzuki // ----- // Last Modified: 23/03/2021 // Modified By: Shun Suzuki (suzuki@hapis.k.u-tokyo.ac.jp) // ----- // Copyright (c) 2021 Hapis Lab. All rights reserved. // #include "ads_c_wrap.h" int32_t AdsAddRoute_wrap(AmsNetId ams, const char *ip) { return AdsAddRoute(ams, ip); } int32_t AdsPortOpenEx_wrap() { return AdsPortOpenEx(); } int32_t AdsPortCloseEx_wrap(int32_t port) { return AdsPortCloseEx(port); } int32_t AdsSyncWriteReqEx_wrap(int32_t port, const AmsAddr *pAddr, uint32_t indexGroup, uint32_t indexOffset, uint32_t bufferLength, const void *buffer) { return AdsSyncWriteReqEx(port, pAddr, indexGroup, indexOffset, bufferLength, buffer); } int32_t AdsSyncReadReqEx2_wrap(int32_t port, const AmsAddr *pAddr, uint32_t indexGroup, uint32_t indexOffset, uint32_t bufferLength, void *buffer, uint32_t *bytesRead) { return AdsSyncReadReqEx2(port, pAddr, indexGroup, indexOffset, bufferLength, buffer, bytesRead); }