aboutsummaryrefslogtreecommitdiffstats
path: root/fm.h
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2019-07-01 13:58:33 +0000
committerGitHub <noreply@github.com>2019-07-01 13:58:33 +0000
commitd6545481aeb15b71f44f4a3b903fbd38703425de (patch)
treece5478bd6a172d5e32cc3a68e2e5a748407ff05a /fm.h
parentUpdate ChangeLog (diff)
parentAllow setting User Agent in Siteconf (diff)
downloadw3m-d6545481aeb15b71f44f4a3b903fbd38703425de.tar.gz
w3m-d6545481aeb15b71f44f4a3b903fbd38703425de.zip
Merge pull request #119 from adamemerson/siteconf-user-agent
Allow setting User Agent in Siteconf
Diffstat (limited to 'fm.h')
-rw-r--r--fm.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fm.h b/fm.h
index 8face3c..4a17ecc 100644
--- a/fm.h
+++ b/fm.h
@@ -271,8 +271,10 @@ extern int REV_LB[];
#define SCONF_URL_CHARSET 2
#define SCONF_NO_REFERER_FROM 3
#define SCONF_NO_REFERER_TO 4
-#define SCONF_N_FIELD 5
+#define SCONF_USER_AGENT 5
+#define SCONF_N_FIELD 6
#define query_SCONF_SUBSTITUTE_URL(pu) ((const char *)querySiteconf(pu, SCONF_SUBSTITUTE_URL))
+#define query_SCONF_USER_AGENT(pu) ((const char *)querySiteconf(pu, SCONF_USER_AGENT))
#define query_SCONF_URL_CHARSET(pu) ((const wc_ces *)querySiteconf(pu, SCONF_URL_CHARSET))
#define query_SCONF_NO_REFERER_FROM(pu) ((const int *)querySiteconf(pu, SCONF_NO_REFERER_FROM))
#define query_SCONF_NO_REFERER_TO(pu) ((const int *)querySiteconf(pu, SCONF_NO_REFERER_TO))