19 lines
234 B
C++
19 lines
234 B
C++
|
|
#include "jansson_handle.hpp"
|
||
|
|
|
||
|
|
#include <jansson.h>
|
||
|
|
|
||
|
|
namespace base
|
||
|
|
{
|
||
|
|
void JsonHandle::IncRef()
|
||
|
|
{
|
||
|
|
if (m_pJson)
|
||
|
|
json_incref(m_pJson);
|
||
|
|
}
|
||
|
|
|
||
|
|
void JsonHandle::DecRef()
|
||
|
|
{
|
||
|
|
if (m_pJson)
|
||
|
|
json_decref(m_pJson);
|
||
|
|
}
|
||
|
|
} // namespace base
|