Files
FTL/database/gravity-db.h
T
2019-07-01 13:55:03 +02:00

22 lines
642 B
C

/* Pi-hole: A black hole for Internet advertisements
* (c) 2019 Pi-hole, LLC (https://pi-hole.net)
* Network-wide ad blocking via your own hardware.
*
* FTL Engine
* gravity database prototypes
*
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */
#ifndef GRAVITY_H
#define GRAVITY_H
bool gravityDB_open(void);
void gravityDB_close(void);
bool gravityDB_getTable(unsigned char list);
const char* gravityDB_getDomain(void);
void gravityDB_finalizeTable(void);
int gravityDB_count(unsigned char list);
bool in_whitelist(const char *domain);
#endif //GRAVITY_H