open62541 1.4.19
Open source implementation of OPC UA
Loading...
Searching...
No Matches
Typedefs | Functions
xht.h File Reference

Go to the source code of this file.

Typedefs

typedef struct xht xht_t
 
typedef void(* xht_walker) (xht_t *h, const char *key, void *val, void *arg)
 

Functions

xht_t * xht_new (int prime)
 
void xht_set (xht_t *h, const char *key, void *val)
 
void xht_store (xht_t *h, const char *key, int klen, void *val, int vlen)
 
void * xht_get (xht_t *h, const char *key)
 
void xht_free (xht_t *h)
 
void xht_walk (xht_t *h, xht_walker w, void *arg)
 

Typedef Documentation

◆ xht_t

typedef struct xht xht_t

Simple string->void* hashtable, very static and bare minimal, but efficient.

Copyright (c) 2003 Jeremie Miller jer@j.nosp@m.abbe.nosp@m.r.org Copyright (c) 2016-2026 Joachim Wiberg trogl.nosp@m.obit.nosp@m.@gmai.nosp@m.l.co.nosp@m.m All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition at line 34 of file xht.h.

◆ xht_walker

typedef void(* xht_walker) (xht_t *h, const char *key, void *val, void *arg)

Definition at line 52 of file xht.h.

Function Documentation

◆ xht_free()

void xht_free ( xht_t *  h)

◆ xht_get()

void * xht_get ( xht_t *  h,
const char *  key 
)

◆ xht_new()

xht_t * xht_new ( int  prime)

◆ xht_set()

void xht_set ( xht_t *  h,
const char *  key,
void *  val 
)

◆ xht_store()

void xht_store ( xht_t *  h,
const char *  key,
int  klen,
void *  val,
int  vlen 
)

◆ xht_walk()

void xht_walk ( xht_t *  h,
xht_walker  w,
void *  arg 
)