zapret/nfq/hostlist.h

18 lines
723 B
C
Raw Normal View History

2024-10-28 09:32:24 +03:00
#pragma once
#include <stdbool.h>
#include "pools.h"
#include "params.h"
bool AppendHostlistItem(hostlist_pool **hostlist, char *s);
bool AppendHostList(hostlist_pool **hostlist, const char *filename);
bool LoadAllHostLists();
bool NonEmptyHostlist(hostlist_pool **hostlist);
2024-10-28 09:32:24 +03:00
// return : true = apply fooling, false = do not apply
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();
2025-01-24 11:12:56 +03:00
#define ResetAllHostlistsModTime() hostlist_files_reset_modtime(&params.hostlists)