// File: ads_c_wrap.h // Project: src // 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. // #pragma once #include "AdsLib.h" #ifdef __cplusplus extern "C" { #endif int32_t AdsAddRoute_wrap(AmsNetId ams, const char *ip); int32_t AdsPortOpenEx_wrap(); int32_t AdsPortCloseEx_wrap(int32_t port); int32_t AdsSyncWriteReqEx_wrap(int32_t port, const AmsAddr *pAddr, uint32_t indexGroup, uint32_t indexOffset, uint32_t bufferLength, const void *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); #ifdef __cplusplus } #endif