Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
18
libs/cppjansson/jansson_handle.cpp
Normal file
18
libs/cppjansson/jansson_handle.cpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue