Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Mar 24, 2014
1 parent daf7d4d commit 97992cc
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/modules/rlm_rest/rest.h
Expand Up @@ -171,30 +171,30 @@ typedef enum {
* Outbound data context (passed to CURLOPT_READFUNCTION as CURLOPT_READDATA)
*/
typedef struct rlm_rest_request_t {
rlm_rest_t *instance;
REQUEST *request;
read_state_t state;
rlm_rest_t *instance;
REQUEST *request;
read_state_t state;

vp_cursor_t cursor;
vp_cursor_t cursor;

unsigned int chunk;
unsigned int chunk;
} rlm_rest_request_t;

/*
* Curl inbound data context (passed to CURLOPT_WRITEFUNCTION and
* CURLOPT_HEADERFUNCTION as CURLOPT_WRITEDATA and CURLOPT_HEADERDATA)
*/
typedef struct rlm_rest_response_t {
rlm_rest_t *instance;
REQUEST *request;
write_state_t state;
rlm_rest_t *instance;
REQUEST *request;
write_state_t state;

char *buffer; /* HTTP incoming raw data */
size_t alloc; /* Space allocated for buffer */
size_t used; /* Space used in buffer */
char *buffer; //!< HTTP incoming raw data.
size_t alloc; //!< Space allocated for buffer.
size_t used; //!< Space used in buffer.

int code; /* HTTP Status Code */
http_body_type_t type; /* HTTP Content Type */
int code; //!< HTTP Status Code.
http_body_type_t type; //!< HTTP Content Type.
} rlm_rest_response_t;

/*
Expand All @@ -211,8 +211,8 @@ typedef struct rlm_rest_curl_context_t {
* Connection API handle
*/
typedef struct rlm_rest_handle_t {
void *handle; /* Real Handle */
void *ctx; /* Context */
void *handle; //!< Real Handle.
void *ctx; //!< Context.
} rlm_rest_handle_t;

/*
Expand Down

0 comments on commit 97992cc

Please sign in to comment.