2024-10-28 06:32:24 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "pools.h"
|
|
|
|
#include "params.h"
|
|
|
|
|
2024-11-24 13:02:51 +00:00
|
|
|
bool AppendHostlistItem(strpool **hostlist, char *s);
|
2024-10-13 14:26:25 +00:00
|
|
|
bool AppendHostList(strpool **hostlist, const char *filename);
|
2024-10-29 12:08:05 +00:00
|
|
|
bool LoadAllHostLists();
|
2024-10-28 06:32:24 +00:00
|
|
|
bool NonEmptyHostlist(strpool **hostlist);
|
|
|
|
// return : true = apply fooling, false = do not apply
|
2024-10-29 12:08:05 +00:00
|
|
|
bool HostlistCheck(const struct desync_profile *dp,const char *host, bool *excluded, bool bSkipReloadCheck);
|
|
|
|
struct hostlist_file *RegisterHostlist(struct desync_profile *dp, bool bExclude, const char *filename);
|
|
|
|
bool HostlistsReloadCheckForProfile(const struct desync_profile *dp);
|
|
|
|
void HostlistsDebug();
|