去掉hos_init_api和hos_shutdown_api
This commit is contained in:
@@ -152,18 +152,6 @@ void hos_set_thread_sum(hos_client_handle client, size_t thread_sum)
|
|||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
void hos_init_api()
|
|
||||||
{
|
|
||||||
//options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Debug;
|
|
||||||
Aws::InitAPI(options);
|
|
||||||
}
|
|
||||||
|
|
||||||
void hos_shutdown_api()
|
|
||||||
{
|
|
||||||
//options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Debug;
|
|
||||||
Aws::ShutdownAPI(options);
|
|
||||||
}
|
|
||||||
|
|
||||||
hos_client_handle hos_client_create(const char *endpoint, const char *accesskeyid, const char *secretkey, size_t pool_size)
|
hos_client_handle hos_client_create(const char *endpoint, const char *accesskeyid, const char *secretkey, size_t pool_size)
|
||||||
{
|
{
|
||||||
if (!endpoint || !accesskeyid || !secretkey)
|
if (!endpoint || !accesskeyid || !secretkey)
|
||||||
@@ -175,6 +163,8 @@ hos_client_handle hos_client_create(const char *endpoint, const char *accesskeyi
|
|||||||
{
|
{
|
||||||
return hos_handle;
|
return hos_handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Aws::InitAPI(options);
|
||||||
hos_handle = (hos_client_handle)malloc(sizeof(hos_client_handle_t));
|
hos_handle = (hos_client_handle)malloc(sizeof(hos_client_handle_t));
|
||||||
memset(hos_handle, 0, sizeof(hos_client_handle_t));
|
memset(hos_handle, 0, sizeof(hos_client_handle_t));
|
||||||
Aws::Client::ClientConfiguration config;
|
Aws::Client::ClientConfiguration config;
|
||||||
@@ -814,5 +804,7 @@ int hos_client_destory(hos_client_handle handle)
|
|||||||
}
|
}
|
||||||
free(handle);
|
free(handle);
|
||||||
|
|
||||||
|
Aws::ShutdownAPI(options);
|
||||||
|
|
||||||
return HOS_CLIENT_OK;
|
return HOS_CLIENT_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,15 +75,6 @@ enum s3errors
|
|||||||
|
|
||||||
typedef void (*put_finished_callback)(bool, const char *, const char *, const char *, void *);
|
typedef void (*put_finished_callback)(bool, const char *, const char *, const char *, void *);
|
||||||
|
|
||||||
|
|
||||||
/*************************************************************************************
|
|
||||||
* 函数名: hos_init_api
|
|
||||||
*************************************************************************************/
|
|
||||||
void hos_init_api();
|
|
||||||
/*************************************************************************************
|
|
||||||
* 函数名: hos_shutdown_api
|
|
||||||
*************************************************************************************/
|
|
||||||
void hos_shutdown_api();
|
|
||||||
/*************************************************************************************
|
/*************************************************************************************
|
||||||
* 函数名: hos_client_init
|
* 函数名: hos_client_init
|
||||||
* 参数: const char *endpoint 目的地址,如”http://192.168.44.12:9098/hos“
|
* 参数: const char *endpoint 目的地址,如”http://192.168.44.12:9098/hos“
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ set(AWSS3_URL ${CMAKE_CURRENT_SOURCE_DIR}/aws-sdk-cpp-master.zip)
|
|||||||
#set(AWSS3_URL_MD5 a94cce4fe5003acf55fe1eac8c49ad4f)
|
#set(AWSS3_URL_MD5 a94cce4fe5003acf55fe1eac8c49ad4f)
|
||||||
set(AWSS3_URL_MD5 dcdcd3cd6d2864f7efbfa90db6f5bf32)
|
set(AWSS3_URL_MD5 dcdcd3cd6d2864f7efbfa90db6f5bf32)
|
||||||
#set(AWSS3_URL_MD5 1bb2784d5f39ff05fcf2c30092dc8a66)
|
#set(AWSS3_URL_MD5 1bb2784d5f39ff05fcf2c30092dc8a66)
|
||||||
set(AWSS3_CONFIGURE cd ${AWSS3_ROOT}/aws-sdk-cpp-master/src/aws-sdk-cpp-master && cmake . -DBUILD_ONLY=s3 -DCMAKE_BUILD_TYPE=Debug)
|
set(AWSS3_CONFIGURE cd ${AWSS3_ROOT}/aws-sdk-cpp-master/src/aws-sdk-cpp-master && cmake . -DBUILD_ONLY=s3)
|
||||||
set(AWSS3_MAKE cd ${AWSS3_ROOT}/aws-sdk-cpp-master/src/aws-sdk-cpp-master && make)
|
set(AWSS3_MAKE cd ${AWSS3_ROOT}/aws-sdk-cpp-master/src/aws-sdk-cpp-master && make)
|
||||||
set(AWSS3_INSTALL cd ${AWSS3_ROOT}/aws-sdk-cpp-master/src/aws-sdk-cpp-master && make install PREFIX=${SUPPORT_INSTALL_PREFIX})
|
set(AWSS3_INSTALL cd ${AWSS3_ROOT}/aws-sdk-cpp-master/src/aws-sdk-cpp-master && make install PREFIX=${SUPPORT_INSTALL_PREFIX})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user