summaryrefslogtreecommitdiff
path: root/libsoup/soup-tld-private.h
diff options
context:
space:
mode:
authorSergio Villar Senin <svillar@igalia.com>2012-04-10 00:06:35 +0200
committerSergio Villar Senin <svillar@igalia.com>2012-06-14 20:08:09 +0200
commit5a30492229e3b09039d60979f74f6632767677d5 (patch)
treec7530a270becf09a915271f6f42f9ef9cad32a6c /libsoup/soup-tld-private.h
parent6a0d7574b74c9bc20e8bd43e18474bc43c5e4408 (diff)
downloadlibsoup-5a30492229e3b09039d60979f74f6632767677d5.tar.gz
soup-tld: added soup_tld_* utils
The soup_tld_* set of functions along with the list of public suffixes published in http://publicsuffix.org allows API clients to get the base domain of a given hostname or to check if a given domain is a public suffix (one under which internet users can register new names). https://bugzilla.gnome.org/show_bug.cgi?id=673802
Diffstat (limited to 'libsoup/soup-tld-private.h')
-rw-r--r--libsoup/soup-tld-private.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/libsoup/soup-tld-private.h b/libsoup/soup-tld-private.h
new file mode 100644
index 00000000..20179511
--- /dev/null
+++ b/libsoup/soup-tld-private.h
@@ -0,0 +1,26 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/*
+ * soup-tld-private.h:
+ *
+ * Copyright (C) 2012 Igalia, S.L.
+ */
+
+#ifndef SOUP_TLD_PRIVATE_H
+#define SOUP_TLD_PRIVATE_H 1
+
+G_BEGIN_DECLS
+
+typedef enum {
+ SOUP_TLD_RULE_NORMAL,
+ SOUP_TLD_RULE_MATCH_ALL = 1 << 0,
+ SOUP_TLD_RULE_EXCEPTION = 1 << 1,
+} SoupTLDRuleFlags;
+
+typedef struct {
+ char *domain;
+ guint flags;
+} SoupTLDEntry;
+
+G_END_DECLS
+
+#endif /* SOUP_TLD_PRIVATE_H */