-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathsetstr.h
35 lines (27 loc) · 788 Bytes
/
setstr.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*-
* xnumon - monitor macOS for malicious activity
* https://www.roe.ch/xnumon
*
* Copyright (c) 2017-2019, Daniel Roethlisberger <[email protected]>.
* All rights reserved.
*
* Licensed under the Open Software License version 3.0.
*/
#ifndef SETSTR_H
#define SETSTR_H
#include "attrib.h"
#include "tommyhashtbl.h"
#include <stddef.h>
#include <stdbool.h>
typedef struct setstr {
tommy_hashtable hashtable;
tommy_count_t bucket_max;
size_t size;
} setstr_t;
int setstr_init(setstr_t *, size_t, char **) NONNULL(1) WUNRES;
bool setstr_contains(setstr_t *, const char *) NONNULL(1,2) WUNRES;
bool setstr_contains3(setstr_t *, const char *, const char *)
NONNULL(1,2) WUNRES;
size_t setstr_size(setstr_t *) NONNULL(1);
void setstr_destroy(setstr_t *) NONNULL(1);
#endif