2012-04-02 08:56:30 +02:00
|
|
|
#ifndef NETSTRING_H
|
|
|
|
#define NETSTRING_H
|
2012-03-28 13:24:49 +02:00
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
|
|
|
class Netstring : public Object
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
size_t m_Length;
|
|
|
|
void *m_Data;
|
|
|
|
|
|
|
|
public:
|
|
|
|
typedef shared_ptr<Netstring> RefType;
|
|
|
|
typedef weak_ptr<Netstring> WeakRefType;
|
|
|
|
|
2012-03-28 21:20:13 +02:00
|
|
|
static cJSON *ReadJSONFromFIFO(FIFO::RefType fifo);
|
|
|
|
static void WriteJSONToFIFO(FIFO::RefType fifo, cJSON *object);
|
2012-03-28 13:24:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-04-02 08:56:30 +02:00
|
|
|
#endif /* NETSTRING_H */
|