From: PHO Date: Wed, 6 Oct 2010 14:28:03 +0000 (+0900) Subject: Bindings.APR.URI X-Git-Tag: RELEASE-0.1~2 X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=0276aab2cd3ece73fc8141fbf33634ec48a3a048;p=bindings-apr-util.git Bindings.APR.URI --- diff --git a/Bindings/APR/URI.hsc b/Bindings/APR/URI.hsc new file mode 100644 index 0000000..48a102c --- /dev/null +++ b/Bindings/APR/URI.hsc @@ -0,0 +1,59 @@ +#include +#include + +module Bindings.APR.URI where +#strict_import +import Bindings.APR.ErrNo +import Bindings.APR.Network.IO +import Bindings.APR.Pools + +#num APR_URI_FTP_DEFAULT_PORT +#num APR_URI_SSH_DEFAULT_PORT +#num APR_URI_TELNET_DEFAULT_PORT +#num APR_URI_GOPHER_DEFAULT_PORT +#num APR_URI_HTTP_DEFAULT_PORT +#num APR_URI_POP_DEFAULT_PORT +#num APR_URI_NNTP_DEFAULT_PORT +#num APR_URI_IMAP_DEFAULT_PORT +#num APR_URI_PROSPERO_DEFAULT_PORT +#num APR_URI_WAIS_DEFAULT_PORT +#num APR_URI_LDAP_DEFAULT_PORT +#num APR_URI_HTTPS_DEFAULT_PORT +#num APR_URI_RTSP_DEFAULT_PORT +#num APR_URI_SNEWS_DEFAULT_PORT +#num APR_URI_ACAP_DEFAULT_PORT +#num APR_URI_NFS_DEFAULT_PORT +#num APR_URI_TIP_DEFAULT_PORT +#num APR_URI_SIP_DEFAULT_PORT + +#num APR_URI_UNP_OMITSITEPART +#num APR_URI_UNP_OMITUSER +#num APR_URI_UNP_OMITPASSWORD +#num APR_URI_UNP_OMITUSERINFO +#num APR_URI_UNP_REVEALPASSWORD +#num APR_URI_UNP_OMITPATHINFO +#num APR_URI_UNP_OMITQUERY + +#starttype struct apr_uri_t +# field scheme , Ptr CChar +# field hostinfo, Ptr CChar +# field user , Ptr CChar +# field password, Ptr CChar +# field hostname, Ptr CChar +# field port_str, Ptr CChar +# field path , Ptr CChar +# field query , Ptr CChar +# field fragment, Ptr CChar +-- FIXME: struct hostent +-- # field hostent , Ptr +# field port , +-- FIXME: bit fields +-- # field is_initialized, CUInt +-- # field dns_looked_up , CUInt +-- # field dns_resolved , CUInt +#stoptype + +#ccall apr_uri_port_of_scheme, Ptr CChar -> IO +#ccall apr_uri_unparse , Ptr -> Ptr -> CUInt -> IO (Ptr CChar) +#ccall apr_uri_parse , Ptr -> Ptr CChar -> Ptr -> IO +#ccall apr_uri_parse_hostinfo, Ptr -> Ptr CChar -> Ptr -> IO diff --git a/bindings-apr-util.cabal b/bindings-apr-util.cabal index 7595216..08809f3 100644 --- a/bindings-apr-util.cabal +++ b/bindings-apr-util.cabal @@ -52,6 +52,7 @@ Library Bindings.APR.SHA1 Bindings.APR.StrMatch Bindings.APR.Thread.Pool + Bindings.APR.URI Bindings.APR.XLate C-Sources: