C and C++ web framework. http://rapida.vilor.one/docs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
391 B

/* SPDX-License-Identifier: GPL-3.0-or-later */
/* Copyright 2022 Ivan Polyakov */
#include "KeyVal.hxx"
#include <stdlib.h>
using namespace rpd;
KeyVal::KeyVal()
: _keyval((rpd_keyval *) malloc(sizeof(rpd_keyval)))
{
rpd_keyval_init(_keyval, 0);
}
KeyVal::KeyVal(int capacity)
: _keyval((rpd_keyval *) malloc(sizeof(rpd_keyval)))
{
rpd_keyval_init(_keyval, capacity);
}