]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/smux/utils.h
Fight CLang warnings.
[stg.git] / projects / stargazer / plugins / other / smux / utils.h
index 8007fee6ec7aa9edc91a830808a71befdc25ef83..66724e941de2e867a0a0b18e5b7834842a100862 100644 (file)
@@ -1,22 +1,21 @@
-#ifndef __UTILS_H__
-#define __UTILS_H__
-
-#include <string>
+#pragma once
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wold-style-cast"
 #include "stg/OBJECT_IDENTIFIER.h"
 #include "stg/SMUX-PDUs.h"
 #include "stg/GetResponse-PDU.h"
+#pragma GCC diagnostic pop
+
+#include <string>
 
 bool String2OI(const std::string & str, OBJECT_IDENTIFIER_t * oi);
-std::string OI2String(OBJECT_IDENTIFIER_t * oi);
 bool SendOpenPDU(int fd);
-int SendClosePDU(int fd);
-int SendRReqPDU(int fd);
+bool SendClosePDU(int fd);
+bool SendRReqPDU(int fd);
 SMUX_PDUs_t * RecvSMUXPDUs(int fd);
-int SendGetResponsePDU(int fd, GetResponse_PDU_t * getResponse);
-int SendGetResponseErrorPDU(int fd,
-                            const PDU_t * getRequest,
-                            int errorStatus,
-                            int errorIndex);
-
-#endif
+bool SendGetResponsePDU(int fd, GetResponse_PDU_t * getResponse);
+bool SendGetResponseErrorPDU(int fd,
+                             const PDU_t * getRequest,
+                             int errorStatus,
+                             int errorIndex);