httpbf.h File Reference

#include "config.h"
#include <neon/ne_session.h>

Go to the source code of this file.

Data Structures

struct  hbf_block_s
struct  hbf_transfer_s

Typedefs

typedef int(* hbf_abort_callback )()
typedef struct hbf_block_s hbf_block_t
typedef void(* hbf_log_callback )(const char *, const char *)
typedef enum hbf_state_e Hbf_State
typedef struct hbf_transfer_s hbf_transfer_t

Enumerations

enum  hbf_state_e {
  HBF_SUCCESS, HBF_NOT_TRANSFERED, HBF_TRANSFER, HBF_TRANSFER_FAILED,
  HBF_TRANSFER_SUCCESS, HBF_SPLITLIST_FAIL, HBF_SESSION_FAIL, HBF_FILESTAT_FAIL,
  HBF_PARAM_FAIL, HBF_AUTH_FAIL, HBF_PROXY_AUTH_FAIL, HBF_CONNECT_FAIL,
  HBF_TIMEOUT_FAIL, HBF_MEMORY_FAIL, HBF_STAT_FAIL, HBF_SOURCE_FILE_CHANGE,
  HBF_USER_ABORTED, HBF_TRANSFER_NOT_ACKED, HBF_FAIL
}

Functions

const char * hbf_error_string (hbf_transfer_t *transfer, Hbf_State state)
int hbf_fail_http_code (hbf_transfer_t *transfer)
void hbf_free_transfer (hbf_transfer_t *transfer)
hbf_transfer_thbf_init_transfer (const char *dest_uri)
void hbf_set_abort_callback (hbf_transfer_t *transfer, hbf_abort_callback cb)
void hbf_set_log_callback (hbf_transfer_t *transfer, hbf_log_callback cb)
Hbf_State hbf_splitlist (hbf_transfer_t *transfer, int fd)
Hbf_State hbf_transfer (ne_session *session, hbf_transfer_t *transfer, const char *verb)


Typedef Documentation

typedef int(* hbf_abort_callback)()

Definition at line 78 of file httpbf.h.

typedef struct hbf_block_s hbf_block_t

Definition at line 61 of file httpbf.h.

typedef void(* hbf_log_callback)(const char *, const char *)

Definition at line 79 of file httpbf.h.

typedef enum hbf_state_e Hbf_State

Definition at line 59 of file httpbf.h.

Definition at line 82 of file httpbf.h.


Enumeration Type Documentation

http big file functions

Copyright (c) 2012 by Klaas Freitag <freitag@owncloud.com>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

vim: ts=2 sw=2 et cindent

Enumerator:
HBF_SUCCESS 
HBF_NOT_TRANSFERED 
HBF_TRANSFER 
HBF_TRANSFER_FAILED 
HBF_TRANSFER_SUCCESS 
HBF_SPLITLIST_FAIL 
HBF_SESSION_FAIL 
HBF_FILESTAT_FAIL 
HBF_PARAM_FAIL 
HBF_AUTH_FAIL 
HBF_PROXY_AUTH_FAIL 
HBF_CONNECT_FAIL 
HBF_TIMEOUT_FAIL 
HBF_MEMORY_FAIL 
HBF_STAT_FAIL 
HBF_SOURCE_FILE_CHANGE 
HBF_USER_ABORTED 
HBF_TRANSFER_NOT_ACKED 
HBF_FAIL 

Definition at line 37 of file httpbf.h.


Function Documentation

const char* hbf_error_string ( hbf_transfer_t transfer,
Hbf_State  state 
)

int hbf_fail_http_code ( hbf_transfer_t transfer  ) 

void hbf_free_transfer ( hbf_transfer_t transfer  ) 

hbf_transfer_t* hbf_init_transfer ( const char *  dest_uri  ) 

void hbf_set_abort_callback ( hbf_transfer_t transfer,
hbf_abort_callback  cb 
)

void hbf_set_log_callback ( hbf_transfer_t transfer,
hbf_log_callback  cb 
)

Hbf_State hbf_splitlist ( hbf_transfer_t transfer,
int  fd 
)

Hbf_State hbf_transfer ( ne_session *  session,
hbf_transfer_t transfer,
const char *  verb 
)


Generated on Mon Aug 18 13:56:52 2014 for doc by  doxygen 1.5.6