File indexing completed on 2025-01-18 09:55:12
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #ifndef DAVIX_TYPES_HPP
0023 #define DAVIX_TYPES_HPP
0024
0025
0026 #include <string>
0027 #include <iostream>
0028 #include <vector>
0029 #include <stack>
0030 #include <deque>
0031 #include <typeinfo>
0032 #include <algorithm>
0033 #include <functional>
0034
0035 #include <stdint.h>
0036 #include <sys/types.h>
0037
0038 #include <unistd.h>
0039 #include <sys/stat.h>
0040 #include <dirent.h>
0041 #include <fcntl.h>
0042
0043 #include "davix_config.hpp"
0044 #include "davix_nocopy.hpp"
0045
0046 #ifndef __DAVIX_INSIDE__
0047 #error "Only davix.hpp should be included."
0048 #endif
0049
0050
0051
0052
0053
0054 #ifndef DAVIX_EXPORT
0055 #define DAVIX_EXPORT __attribute__((visibility("default")))
0056 #endif
0057
0058 struct Davix_context;
0059 struct Davix_error;
0060
0061
0062 typedef struct Davix_context* davix_sess_t;
0063 typedef struct Davix_error* davix_error_t;
0064 typedef struct davix_file_desc_s* davix_file_desc_t;
0065 typedef struct davix_auth_st* davix_auth_t;
0066 typedef struct davix_request_params* davix_params_t;
0067
0068
0069
0070 typedef uint64_t dav_size_t;
0071 typedef int64_t dav_ssize_t;
0072 #ifdef __DAVIX_COMPAT_32
0073 typedef uint64_t dav_off_t;
0074 #else
0075 typedef int64_t dav_off_t;
0076 #endif
0077
0078
0079 #define DAVIX_BLOCK_SIZE 4096
0080 #define DAVIX_MAX_BLOCK_SIZE 16777216
0081
0082
0083
0084 namespace Davix{
0085
0086 typedef std::pair <std::string, std::string> HeaderLine;
0087 typedef std::vector< HeaderLine > HeaderVec;
0088
0089 typedef std::pair <std::string, std::string> ParamLine;
0090 typedef std::vector< ParamLine > ParamVec;
0091
0092
0093 }
0094
0095
0096
0097
0098
0099
0100 #endif