summaryrefslogtreecommitdiff
path: root/src/hos_hash.h
diff options
context:
space:
mode:
author“pengxuanzheng” <[email protected]>2021-09-24 10:44:30 +0800
committerpengxuanzheng <[email protected]>2021-09-24 15:43:47 +0800
commitf9bce9d590407cea1ab9764f7c10342ffb4eb795 (patch)
tree2de3b0d69d0f61c2b3a80067cd472ce5bad8c5ad /src/hos_hash.h
parent9250031fac8f5c5eec8c17498923315ea8a38a23 (diff)
🦄 refactor(TSG-7851): 重构fd,使用内存地址作为fdv2.0.5
Diffstat (limited to 'src/hos_hash.h')
-rw-r--r--src/hos_hash.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/hos_hash.h b/src/hos_hash.h
deleted file mode 100644
index 81208f3f..00000000
--- a/src/hos_hash.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/*************************************************************************
- > File Name: hos_hash.h
- > Author: pxz
- > Created Time: Fri 18 Sep 2020 05:00:04 PM CST
- ************************************************************************/
-#ifndef __HOS_HASH_H__
-#define __HOS_HASH_H__
-
-#include <aws/core/Aws.h>
-//#include "hos_client.h"
-#include "uthash.h"
-
-typedef struct hos_fd_context_s
-{
- size_t fd;
- int mode;
- //hos_client_handle handle;
- char *bucket;
- char *object;
- void *callback;
- void *userdata;
- std::shared_ptr<Aws::IOStream> cache;
- size_t cache_count;
- size_t position;
- size_t recive_cnt;
- long cache_rest;
- int fd_status;
-#define HOS_FD_REGISTER 0
-#define HOS_FD_INJECT 1
- bool reslut; /*PutObjectAsync result*/
- const char *error; /*PutObjectAsync error message*/
-
- UT_hash_handle hh;
-}hos_fd_context_t;
-
-void add_fd_context(hos_fd_context_t **handle, hos_fd_context_t *input);
-hos_fd_context_t *find_context_by_fd(hos_fd_context_t *handle, size_t fd);
-void delete_context_by_fd(hos_fd_context_t **handle, size_t fd);
-void delete_all(hos_fd_context_t **handle);
-#endif