增加hos_init_api、hos_shutdown_api 接口

This commit is contained in:
pengxuanzheng
2020-10-23 15:05:47 +08:00
parent 9cda944013
commit 6b2bcbab23
3 changed files with 24 additions and 4 deletions

View File

@@ -482,6 +482,7 @@ int main(int argc, char *argv[])
perror(log_name);
return -1;
}
hos_init_api();
//创建client
hos_client_handle handle = hos_client_create(conf.endpoint, "default", "default", conf.pool_size);
if (handle == NULL)
@@ -552,6 +553,7 @@ int main(int argc, char *argv[])
//time /= test_times;
//printf("hos upload finished spent %llu ns\n", time);
}
hos_shutdown_api();
fclose(log);
return 0;