00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _HTTP_CLIENT_INTERNALS_H_
00023 #define _HTTP_CLIENT_INTERNALS_H_
00024
00025 #ifdef HAVE_LIBSOUP22_SOLARIS
00026 #include <libsoup/soup-session-sync.h>
00027 #else
00028 #include <libsoup/soup-session-async.h>
00029 #endif
00030
00031 #include <libsoup/soup-uri.h>
00032 #ifndef HAVE_LIBSOUP22
00033 #include <libsoup/soup-auth.h>
00034 #endif
00035
00036 typedef struct SmlTransportHttpClientEnv {
00037 #ifdef HAVE_LIBSOUP22
00038 SoupUri *uri;
00039 #else
00040 SoupURI *uri;
00041 #endif
00042 SoupSession *session;
00043 SmlTransport *tsp;
00044 uint16_t port;
00045 char *url;
00046 char *proxy;
00047 char *username;
00048 char *password;
00049 char *cafile;
00050
00051 SmlBool connectDone;
00052 SmlBool disconnectDone;
00053 } SmlTransportHttpClientEnv;
00054
00055 SmlBool smlTransportHttpClientNew(SmlTransport *tsp, SmlError **error);
00056
00057 #endif //_HTTP_CLIENT_INTERNALS_H_