2021-03-04 16:30:38 +05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
2023-10-26 17:12:32 +05:00
|
|
|
#include "pools.h"
|
2021-03-04 16:30:38 +05:00
|
|
|
|
2022-07-26 21:15:28 +05:00
|
|
|
bool AppendHostList(strpool **hostlist, char *filename);
|
|
|
|
bool LoadHostLists(strpool **hostlist, struct str_list_head *file_list);
|
2024-03-24 00:57:05 +05:00
|
|
|
bool LoadIncludeHostLists();
|
|
|
|
bool LoadExcludeHostLists();
|
2023-10-26 17:12:32 +05:00
|
|
|
bool NonEmptyHostlist(strpool **hostlist);
|
2022-07-26 21:15:28 +05:00
|
|
|
bool SearchHostList(strpool *hostlist, const char *host);
|
|
|
|
// return : true = apply fooling, false = do not apply
|
2024-03-24 00:57:05 +05:00
|
|
|
bool HostlistCheck(const char *host, bool *excluded);
|