#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 |
typedef struct resource | resource |
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_context * | fetch_resource_list_recursive (const char *uri, const char *curi) |
struct listdir_context * | get_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_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) |
Variables |
struct dav_session_s | dav_session |
static const ne_propname | ls_props [] |
c_rbtree_t * | propfind_recursive_cache |
Define Documentation
#define DAV_STRTOL strtoll |
#define DEBUG_WEBDAV |
( |
|
... | ) |
csync_log( dav_session.csync_ctx, 9, "oc_module", __VA_ARGS__); |
Typedef Documentation
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 |
|
) |
| |
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
Initial value: {
{ "DAV:", "getlastmodified" },
{ "DAV:", "getcontentlength" },
{ "DAV:", "resourcetype" },
{ "DAV:", "getetag"},
{ NULL, NULL }
}
Definition at line 174 of file csync_owncloud.h.