First commit of libcURL Eiffel wrapper library.

git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@70782 8089f293-4706-0410-a29e-feb5c42a2edf
This commit is contained in:
larryl
2007-10-22 08:22:30 +00:00
commit a99db5fd43
17 changed files with 3676 additions and 0 deletions

177
curl_opt_constants.e Normal file
View File

@@ -0,0 +1,177 @@
indexing
description: "[
libcurl library opt constants
For more informaton see:
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html
]"
status: "See notice at end of class."
legal: "See notice at end of class."
date: "$Date$"
revision: "$Revision$"
class
CURL_OPT_CONSTANTS
feature -- Enumerations.
curlopt_httpheader: INTEGER is
-- Declared as CURLOPT_HTTPHEADER.
external
"C inline use <curl/curl.h>"
alias
"[
return CURLOPT_HTTPHEADER;
]"
end
curlopt_writedata: INTEGER is
-- Declared as CURLOPT_WRITEDATA.
external
"C inline use <curl/curl.h>"
alias
"[
return CURLOPT_WRITEDATA;
]"
end
curlopt_writeheader: INTEGER is
-- Declared as CURLOPT_WRITEHEADER.
external
"C inline use <curl/curl.h>"
alias
"[
return CURLOPT_WRITEHEADER;
]"
end
curlopt_debugfunction: INTEGER is
-- Declared as CURLOPT_DEBUGFUNCTION.
external
"C inline use <curl/curl.h>"
alias
"[
return CURLOPT_DEBUGFUNCTION;
]"
end
curlopt_verbose: INTEGER is
-- Declared as CURLOPT_VERBOSE.
external
"C inline use <curl/curl.h>"
alias
"[
return CURLOPT_VERBOSE;
]"
end
curlopt_useragent: INTEGER is
-- Declared as CURLOPT_USERAGENT.
external
"C inline use <curl/curl.h>"
alias
"[
return CURLOPT_USERAGENT;
]"
end
curlopt_url: INTEGER is
-- Declared as CURLOPT_URL.
external
"C inline use <curl/curl.h>"
alias
"[
return CURLOPT_URL;
]"
end
curlopt_cookiefile: INTEGER is
-- Declared as CURLOPT_COOKIEFILE.
external
"C inline use <curl/curl.h>"
alias
"[
return CURLOPT_COOKIEFILE;
]"
end
curlopt_ssl_verifypeer: INTEGER is
-- Declared as CURLOPT_SSL_VERIFYPEER.
external
"C inline use <curl/curl.h>"
alias
"[
return CURLOPT_SSL_VERIFYPEER;
]"
end
curlopt_cookie: INTEGER is
-- Declared as CURLOPT_COOKIE.
external
"C inline use <curl/curl.h>"
alias
"[
return CURLOPT_COOKIE;
]"
end
curlopt_post: INTEGER is
-- Declared as CURLOPT_POST.
external
"C inline use <curl/curl.h>"
alias
"[
return CURLOPT_POST;
]"
end
curlopt_postfields: INTEGER is
-- Declared as CURLOPT_POSTFIELDS.
external
"C inline use <curl/curl.h>"
alias
"[
return CURLOPT_POSTFIELDS;
]"
end
curlopt_httppost: INTEGER is
-- Declared as CURLOPT_HTTPPOST.
external
"C inline use <curl/curl.h>"
alias
"[
return CURLOPT_HTTPPOST;
]"
end
is_valid (a_integer: INTEGER): BOOLEAN is
-- If `a_integer' value vaild?
do
Result := a_integer = curlopt_cookie or
a_integer = curlopt_cookiefile or
a_integer = curlopt_debugfunction or
a_integer = curlopt_httpheader or
a_integer = curlopt_httppost or
a_integer = curlopt_post or
a_integer = curlopt_postfields or
a_integer = curlopt_ssl_verifypeer or
a_integer = curlopt_url or
a_integer = curlopt_useragent or
a_integer = curlopt_verbose or
a_integer = curlopt_writedata or
a_integer = curlopt_writeheader
end
indexing
library: "cURL: Library of reusable components for Eiffel."
copyright: "Copyright (c) 1984-2006, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software
356 Storke Road, Goleta, CA 93117 USA
Telephone 805-685-1006, Fax 805-685-6869
Website http://www.eiffel.com
Customer support http://support.eiffel.com
]"
end