csync_owncloud.h File Reference

#include <errno.h>
#include <stdio.h>
#include <time.h>
#include <limits.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "config.h"
#include <neon/ne_basic.h>
#include <neon/ne_socket.h>
#include <neon/ne_session.h>
#include <neon/ne_request.h>
#include <neon/ne_props.h>
#include <neon/ne_auth.h>
#include <neon/ne_dates.h>
#include <neon/ne_compress.h>
#include <neon/ne_redirect.h>
#include "c_rbtree.h"
#include "c_lib.h"
#include "csync.h"
#include "csync_misc.h"
#include "csync_macros.h"
#include "c_private.h"
#include "httpbf.h"
#include "vio/csync_vio_module.h"
#include "vio/csync_vio_file_stat.h"
#include "vio/csync_vio.h"
#include "csync_log.h"

Go to the source code of this file.

Data Structures

struct  dav_session_s
struct  listdir_context
struct  propfind_recursive_element
struct  resource
struct  transfer_context

Defines

#define DAV_STRTOL   strtoll
#define DEBUG_WEBDAV(...)   csync_log( dav_session.csync_ctx, 9, "oc_module", __VA_ARGS__);

Typedefs

typedef int(* csync_owncloud_redirect_callback_t )(CSYNC *ctx, const char *uri)
typedef struct
propfind_recursive_element 
propfind_recursive_element_t

Enumerations

enum  resource_type { resr_normal = 0, resr_collection, resr_reference, resr_error }

Functions

char * _cleanPath (const char *uri)
int _stat_perms (int type)
void clear_propfind_recursive_cache (void)
struct listdir_contextfetch_resource_list_recursive (const char *uri, const char *curi)
struct listdir_contextget_listdir_context_from_cache (const char *curi)
int http_result_code_from_session (void)
time_t oc_httpdate_parse (const char *date)
void oc_notify_progress (const char *file, enum csync_notify_type_e kind, int64_t current_size, int64_t full_size)
csync_vio_file_stat_tresourceToFileStat (struct resource *res)
void set_errno_from_http_errcode (int err)
void set_errno_from_neon_errcode (int neon_code)
void set_errno_from_session (void)
void set_error_message (const char *msg)

Variables

struct dav_session_s dav_session
static const ne_propname ls_props []
c_rbtree_tpropfind_recursive_cache


Define Documentation

#define DAV_STRTOL   strtoll

Definition at line 75 of file csync_owncloud.h.

#define DEBUG_WEBDAV ( ...   )     csync_log( dav_session.csync_ctx, 9, "oc_module", __VA_ARGS__);

Definition at line 66 of file csync_owncloud.h.


Typedef Documentation

typedef int(* csync_owncloud_redirect_callback_t)(CSYNC *ctx, const char *uri)

Definition at line 136 of file csync_owncloud.h.

Definition at line 112 of file csync_owncloud.h.


Enumeration Type Documentation

Enumerator:
resr_normal 
resr_collection 
resr_reference 
resr_error 

Definition at line 68 of file csync_owncloud.h.


Function Documentation

char* _cleanPath ( const char *  uri  ) 

int _stat_perms ( int  type  ) 

void clear_propfind_recursive_cache ( void   ) 

struct listdir_context* fetch_resource_list_recursive ( const char *  uri,
const char *  curi 
) [read]

struct listdir_context* get_listdir_context_from_cache ( const char *  curi  )  [read]

int http_result_code_from_session ( void   ) 

time_t oc_httpdate_parse ( const char *  date  ) 

void oc_notify_progress ( const char *  file,
enum csync_notify_type_e  kind,
int64_t  current_size,
int64_t  full_size 
)

csync_vio_file_stat_t* resourceToFileStat ( struct resource res  ) 

void set_errno_from_http_errcode ( int  err  ) 

void set_errno_from_neon_errcode ( int  neon_code  ) 

void set_errno_from_session ( void   ) 

void set_error_message ( const char *  msg  ) 


Variable Documentation

const ne_propname ls_props[] [static]

Initial value:

 {
    { "DAV:", "getlastmodified" },
    { "DAV:", "getcontentlength" },
    { "DAV:", "resourcetype" },
    { "DAV:", "getetag"},
    { NULL, NULL }
}

Definition at line 174 of file csync_owncloud.h.


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