]> git.stg.codes - stg.git/blob - projects/stargazer/plugins/other/smux/utils.h
Set LC_NUMERIC to C, changes service serialization format.
[stg.git] / projects / stargazer / plugins / other / smux / utils.h
1 #ifndef __UTILS_H__
2 #define __UTILS_H__
3
4 #include <string>
5
6 #include "stg/OBJECT_IDENTIFIER.h"
7 #include "stg/SMUX-PDUs.h"
8 #include "stg/GetResponse-PDU.h"
9
10 bool String2OI(const std::string & str, OBJECT_IDENTIFIER_t * oi);
11 bool SendOpenPDU(int fd);
12 bool SendClosePDU(int fd);
13 bool SendRReqPDU(int fd);
14 SMUX_PDUs_t * RecvSMUXPDUs(int fd);
15 bool SendGetResponsePDU(int fd, GetResponse_PDU_t * getResponse);
16 bool SendGetResponseErrorPDU(int fd,
17                              const PDU_t * getRequest,
18                              int errorStatus,
19                              int errorIndex);
20
21 #endif