Browse Source

Changed rtcIsOpen() return type to bool for consistency

Paul-Louis Ageneau 4 years ago
parent
commit
42ec963886
2 changed files with 2 additions and 2 deletions
  1. 1 1
      include/rtc/rtc.h
  2. 1 1
      src/capi.cpp

+ 1 - 1
include/rtc/rtc.h

@@ -195,7 +195,7 @@ RTC_EXPORT int rtcSetClosedCallback(int id, rtcClosedCallbackFunc cb);
 RTC_EXPORT int rtcSetErrorCallback(int id, rtcErrorCallbackFunc cb);
 RTC_EXPORT int rtcSetErrorCallback(int id, rtcErrorCallbackFunc cb);
 RTC_EXPORT int rtcSetMessageCallback(int id, rtcMessageCallbackFunc cb);
 RTC_EXPORT int rtcSetMessageCallback(int id, rtcMessageCallbackFunc cb);
 RTC_EXPORT int rtcSendMessage(int id, const char *data, int size);
 RTC_EXPORT int rtcSendMessage(int id, const char *data, int size);
-RTC_EXPORT int rtcIsOpen(int id);
+RTC_EXPORT bool rtcIsOpen(int id);
 
 
 RTC_EXPORT int rtcGetBufferedAmount(int id); // total size buffered to send
 RTC_EXPORT int rtcGetBufferedAmount(int id); // total size buffered to send
 RTC_EXPORT int rtcSetBufferedAmountLowThreshold(int id, int amount);
 RTC_EXPORT int rtcSetBufferedAmountLowThreshold(int id, int amount);

+ 1 - 1
src/capi.cpp

@@ -675,7 +675,7 @@ int rtcSendMessage(int id, const char *data, int size) {
 	});
 	});
 }
 }
 
 
-int rtcIsOpen(int id) {
+bool rtcIsOpen(int id) {
 	return wrap([id] { return getChannel(id)->isOpen(); });
 	return wrap([id] { return getChannel(id)->isOpen(); });
 }
 }