]> git.stg.codes - stg.git/blob - projects/stargazer/plugins/other/smux/utils.h
Fix build on Darwin.
[stg.git] / projects / stargazer / plugins / other / smux / utils.h
1 #pragma once
2
3 #pragma GCC diagnostic push
4 #pragma GCC diagnostic ignored "-Wold-style-cast"
5 #include "stg/OBJECT_IDENTIFIER.h"
6 #include "stg/SMUX-PDUs.h"
7 #include "stg/GetResponse-PDU.h"
8 #pragma GCC diagnostic pop
9
10 #include <string>
11
12 bool String2OI(const std::string & str, OBJECT_IDENTIFIER_t * oi);
13 bool SendOpenPDU(int fd);
14 bool SendClosePDU(int fd);
15 bool SendRReqPDU(int fd);
16 SMUX_PDUs_t * RecvSMUXPDUs(int fd);
17 bool SendGetResponsePDU(int fd, GetResponse_PDU_t * getResponse);
18 bool SendGetResponseErrorPDU(int fd,
19                              const PDU_t * getRequest,
20                              int errorStatus,
21                              int errorIndex);