/* Copyright (C) 2014-2020, Dirk Krause SPDX-License-Identifier: BSD-3-Clause */ /* WARNING: This file was generated by the dkct program (see http://dktools.sourceforge.net/ for details). Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: dk3kv.ctr */ /** @file dk3kv.h Header file for the dk3kv module. */ #ifndef DK3KV_H_INCLUDED /** Avoid multiple inclusions. */ #define DK3KV_H_INCLUDED 1 #line 8 "dk3kv.ctr" #ifdef __cplusplus extern "C" { #endif /** Compare key value pairs. @param l Left object. @param r Right object. @param cr Comparison criteria (0=object/object, 1=object/string). @return Comparison result */ int dk3kv_compare(void const *l, void const *r, int cr); /** Remove key value pair, release memory. @param p Key value pair to release. */ void dk3kv_delete(dk3_key_value_t *p); /** Create new key value pair. @param k Key. @param v Value, may be NULL. @param app Application structure for diagnostics, may be NULL. @return Pointer to new data on success, NULL on error. */ dk3_key_value_t * dk3kv_new_app(dkChar const *k, dkChar const *v, dk3_app_t *app); #ifdef __cplusplus } #endif #endif