mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
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
|