blob: 904256464868f6c1b11a7fd6c598869670e11c80 [file] [log] [blame]
#ifndef _CONN_INFO_H
#define _CONN_INFO_H
#ifdef __cplusplus
extern "C" {
#endif
struct _TimeoutControl {
time_t mTimestampStart;
time_t mTimestampLast;
unsigned mFixups;
};
struct _CMCIConnection {
CMCIConnectionFT *ft;
CURL *mHandle; // The handle to the curl object
struct curl_slist *mHeaders; // The list of headers sent with each request
UtilStringBuffer *mBody; // The body of the request
UtilStringBuffer *mUri; // The uri of the request
UtilStringBuffer *mUserPass; // The username/password used in authentication
UtilStringBuffer *mResponse; // Used to store the HTTP response
CMPIStatus mStatus; // returned request status (via HTTP trailers)
struct _TimeoutControl mTimeout; /* Used for timeout control */
};
#ifdef __cplusplus
}
#endif
#endif