|
/* retoor <retoor@molodetz.nl> */
|
|
|
|
#ifndef FUSEDAV_UTILS_H
|
|
#define FUSEDAV_UTILS_H
|
|
|
|
#include <stddef.h>
|
|
#include <sys/stat.h>
|
|
#include <libxml/parser.h>
|
|
#include "cache.h"
|
|
|
|
char *url_encode(const char *str);
|
|
char *url_decode(const char *str);
|
|
char *path_join(const char *base, const char *path);
|
|
char *path_parent(const char *path);
|
|
char *path_basename(const char *path);
|
|
int path_is_root(const char *path);
|
|
|
|
int http_status_to_errno(long http_code);
|
|
|
|
int parse_propfind_response(const char *xml_data, size_t xml_len,
|
|
struct stat *st, dir_listing_t *listing);
|
|
|
|
time_t parse_http_date(const char *date_str);
|
|
|
|
char *xml_get_text(xmlNodePtr node);
|
|
int xml_is_collection(xmlNodePtr node);
|
|
|
|
#endif
|