RTRlib
Loading...
Searching...
No Matches
ht-spkitable_private.h
Go to the documentation of this file.
1/*
2 * This file is part of RTRlib.
3 *
4 * This file is subject to the terms and conditions of the MIT license.
5 * See the file LICENSE in the top level directory for more details.
6 *
7 * Website: http://rtrlib.realmv6.org/
8 */
9#ifndef RTR_HT_SPKITABLE_PRIVATE_H
10#define RTR_HT_SPKITABLE_PRIVATE_H
11
13
14#include "third-party/tommyds/tommyhashlin.h"
15#include "third-party/tommyds/tommylist.h"
16
17typedef int (*hash_cmp_fp)(const void *arg, const void *obj);
18
27struct spki_table {
28 tommy_hashlin hashtable;
29 tommy_list list;
32 pthread_rwlock_t lock;
33};
34
35#endif
void(* spki_update_fp)(struct spki_table *spki_table, const struct spki_record record, const bool added)
A function pointer that is called if an record was added to the spki_table or was removed from the sp...
Definition spkitable.h:52
int(* hash_cmp_fp)(const void *arg, const void *obj)
Definition ht-spkitable_private.h:17
spki_table.
Definition ht-spkitable_private.h:27
pthread_rwlock_t lock
Definition ht-spkitable_private.h:32
tommy_list list
Definition ht-spkitable_private.h:29
spki_update_fp update_fp
Definition ht-spkitable_private.h:31
hash_cmp_fp cmp_fp
Definition ht-spkitable_private.h:30
tommy_hashlin hashtable
Definition ht-spkitable_private.h:28