zapret/tpws/hostlist.h

12 lines
441 B
C
Raw Normal View History

2021-03-04 11:30:38 +00:00
#pragma once
#include <stdbool.h>
2023-10-26 12:12:32 +00:00
#include "pools.h"
2021-03-04 11:30:38 +00:00
bool AppendHostList(strpool **hostlist, char *filename);
bool LoadHostLists(strpool **hostlist, struct str_list_head *file_list);
2023-10-26 12:12:32 +00:00
bool NonEmptyHostlist(strpool **hostlist);
bool SearchHostList(strpool *hostlist, const char *host);
// return : true = apply fooling, false = do not apply
2023-10-26 12:12:32 +00:00
bool HostlistCheck(strpool *hostlist, strpool *hostlist_exclude, const char *host, bool *excluded);