Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:55:12

0001 /*
0002  * This File is part of Davix, The IO library for HTTP based protocols
0003  * Copyright (C) CERN 2013
0004  * Author: Adrien Devresse <adrien.devresse@cern.ch>
0005  *
0006  * This library is free software; you can redistribute it and/or
0007  * modify it under the terms of the GNU Lesser General Public
0008  * License as published by the Free Software Foundation; either
0009  * version 2.1 of the License, or (at your option) any later version.
0010  *
0011  * This library is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0014  * Lesser General Public License for more details.
0015  *
0016  * You should have received a copy of the GNU Lesser General Public
0017  * License along with this library; if not, write to the Free Software
0018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
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 // type decl
0054 #ifndef DAVIX_EXPORT
0055 #define DAVIX_EXPORT __attribute__((visibility("default")))
0056 #endif
0057 
0058 struct Davix_context;
0059 struct Davix_error;
0060 
0061 // alias
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 // Davix types
0070 typedef uint64_t dav_size_t;
0071 typedef int64_t dav_ssize_t;
0072 #ifdef __DAVIX_COMPAT_32        // defined only for 32 bits arc and abi compat
0073 typedef uint64_t dav_off_t;
0074 #else
0075 typedef int64_t dav_off_t;
0076 #endif
0077 
0078 // block size
0079 #define DAVIX_BLOCK_SIZE 4096
0080 #define DAVIX_MAX_BLOCK_SIZE 16777216
0081 
0082 
0083 
0084 namespace Davix{
0085     // Davix namespace declaration
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 } // Davix
0094 
0095 
0096 
0097 
0098 
0099 
0100 #endif // DAVIX_TYPES_HPP