This commit is contained in:
pengxuanzheng
2020-09-11 16:13:02 +08:00
commit cd0649bfbc
6 changed files with 167 additions and 0 deletions

15
src/hos_client.h Normal file
View File

@@ -0,0 +1,15 @@
/*************************************************************************
> File Name: hos_client_api.h
> Author: pxz
> Created Time: Thu 10 Sep 2020 03:13:59 PM CST
************************************************************************/
#ifndef __HOS_CLIENT_INIT__
#define __HOS_CLIENT_INIT__
typedef void* hos_client_handle;
hos_client_handle hos_client_init(const char *endpoint, const char *accesskeyid, const char *secretkey);
bool hos_create_bucket(hos_client_handle handle, const char *bucket);
bool hos_upload_async(hos_client_handle handle, const char *bucket, const char *object);
void hos_client_close(hos_client_handle handle);
#endif