summaryrefslogtreecommitdiff
path: root/lib/file.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-03-14 22:22:22 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-03-14 22:22:22 +0100
commit8831000bc07de463d277975a3ddfb6a31dcf14b4 (patch)
tree0313bc919a3ee27021c352e9efad38ad8c62407e /lib/file.c
parented8749e308a9ed0da49ad46b8b2ba5e8aae80244 (diff)
downloadgnurl-8831000bc07de463d277975a3ddfb6a31dcf14b4.tar.gz
gnurl-8831000bc07de463d277975a3ddfb6a31dcf14b4.tar.bz2
gnurl-8831000bc07de463d277975a3ddfb6a31dcf14b4.zip
protocol handler: added flags field
The protocol handler struct got a 'flags' field for special information and characteristics of the given protocol. This now enables us to move away central protocol information such as CLOSEACTION and DUALCHANNEL from single defines in a central place, out to each protocol's definition. It also made us stop abusing the protocol field for other info than the protocol, and we could start cleaning up other protocol-specific things by adding flags bits to set in the handler struct. The "protocol" field connectdata struct was removed as well and the code now refers directly to the conn->handler->protocol field instead. To make things work properly, the code now always store a conn->given pointer that points out the original handler struct so that the code can learn details from the original protocol even if conn->handler is modified along the way - for example when switching to go over a HTTP proxy.
Diffstat (limited to 'lib/file.c')
-rw-r--r--lib/file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/file.c b/lib/file.c
index d4e941f75..52c175f10 100644
--- a/lib/file.c
+++ b/lib/file.c
@@ -127,7 +127,8 @@ const struct Curl_handler Curl_handler_file = {
ZERO_NULL, /* perform_getsock */
ZERO_NULL, /* disconnect */
0, /* defport */
- PROT_FILE /* protocol */
+ PROT_FILE, /* protocol */
+ PROTOPT_BANPROXY /* flags */
};