icinga2/jsonrpc/netstring.h

24 lines
378 B
C
Raw Normal View History

#ifndef NETSTRING_H
#define NETSTRING_H
2012-03-28 13:24:49 +02:00
namespace icinga
{
class I2_JSONRPC_API Netstring : public Object
2012-03-28 13:24:49 +02:00
{
private:
size_t m_Length;
void *m_Data;
public:
typedef shared_ptr<Netstring> Ptr;
typedef weak_ptr<Netstring> WeakPtr;
2012-03-28 13:24:49 +02:00
static cJSON *ReadJSONFromFIFO(FIFO::Ptr fifo);
static void WriteJSONToFIFO(FIFO::Ptr fifo, cJSON *object);
2012-03-28 13:24:49 +02:00
};
}
#endif /* NETSTRING_H */