zapret/tpws/hostlist.h

14 lines
498 B
C
Raw Normal View History

2021-03-04 14:30:38 +03:00
#pragma once
#include <stdbool.h>
2023-10-26 15:12:32 +03:00
#include "pools.h"
2024-09-19 21:06:58 +03:00
#include "params.h"
2021-03-04 14:30:38 +03:00
bool AppendHostList(strpool **hostlist, char *filename);
bool LoadHostLists(strpool **hostlist, struct str_list_head *file_list);
bool LoadIncludeHostLists();
bool LoadExcludeHostLists();
2023-10-26 15:12:32 +03:00
bool NonEmptyHostlist(strpool **hostlist);
bool SearchHostList(strpool *hostlist, const char *host);
// return : true = apply fooling, false = do not apply
2024-09-19 21:06:58 +03:00
bool HostlistCheck(struct desync_profile *dp,const char *host, bool *excluded);