From 4a81b9443af7d6ec0dae6583d2dd5b6a8cb8a7f7 Mon Sep 17 00:00:00 2001 From: EricLiu2000 Date: Mon, 5 Aug 2019 17:25:09 -0400 Subject: [PATCH] Changed getpollingmessagelimit to return an int --- api/icsneoc/icsneoc.cpp | 2 +- include/icsneo/icsneoc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/icsneoc/icsneoc.cpp b/api/icsneoc/icsneoc.cpp index 777bcc0..3f7504f 100644 --- a/api/icsneoc/icsneoc.cpp +++ b/api/icsneoc/icsneoc.cpp @@ -228,7 +228,7 @@ bool icsneo_getMessages(const neodevice_t* device, neomessage_t* messages, size_ return true; } -size_t icsneo_getPollingMessageLimit(const neodevice_t* device) { +int icsneo_getPollingMessageLimit(const neodevice_t* device) { if(!icsneo_isValidNeoDevice(device)) return -1; diff --git a/include/icsneo/icsneoc.h b/include/icsneo/icsneoc.h index 1c29109..f742a1f 100644 --- a/include/icsneo/icsneoc.h +++ b/include/icsneo/icsneoc.h @@ -269,7 +269,7 @@ extern bool DLLExport icsneo_getMessages(const neodevice_t* device, neomessage_t * * See icsneo_enableMessagePolling() for more information about the message polling system. */ -extern size_t DLLExport icsneo_getPollingMessageLimit(const neodevice_t* device); +extern int DLLExport icsneo_getPollingMessageLimit(const neodevice_t* device); /** * \brief Set the maximum number of messages which will be held in the API managed buffer for the specified hardware.