renamed psl_is_tld() to psl_is_public()

This commit is contained in:
Tim Ruehsen 2014-03-22 10:26:59 +01:00
parent 0bead9b000
commit 577fd14bb4
4 changed files with 5 additions and 5 deletions

View File

@ -53,7 +53,7 @@ void
psl_ctx_t *
psl_load_file(const char *fname);
int
psl_is_tld(const psl_ctx_t *psl, const char *domain);
psl_is_public(const psl_ctx_t *psl, const char *domain);
/* does not include exceptions */
int

View File

@ -210,7 +210,7 @@ static void _suffix_init(_psl_entry_t *suffix, const char *rule, size_t length)
*dst = 0;
}
int psl_is_tld(const psl_ctx_t *psl, const char *domain)
int psl_is_public(const psl_ctx_t *psl, const char *domain)
{
_psl_entry_t suffix, *rule;
const char *p, *label_bak;

View File

@ -4,11 +4,11 @@ AM_CPPFLAGS = -Wno-missing-field-initializers -I$(top_srcdir)/include
AM_LDFLAGS = -static
LDADD = ../src/libpsl-@LIBPSL_API_VERSION@.la
PSL_TESTS = test-is-tld
PSL_TESTS = test-is-public
check_PROGRAMS = $(PSL_TESTS)
test_is_tld_SOURCES = test-is-tld.c
test_is_tld_SOURCES = test-is-public.c
test_is_tld_LDADD = ../src/libpsl-@LIBPSL_API_VERSION@.la
TESTS_ENVIRONMENT = TESTS_VALGRIND="@VALGRIND_ENVIRONMENT@"

View File

@ -69,7 +69,7 @@ static void test_psl(void)
for (it = 0; it < countof(test_data); it++) {
const struct test_data *t = &test_data[it];
int result = psl_is_tld(psl, t->domain);
int result = psl_is_public(psl, t->domain);
if (result == t->result) {
ok++;