|
@@ -1,4 +1,4 @@
|
|
|
-#include "api.h"
|
|
|
+锘�#include "api.h"
|
|
|
#include "cos_api.h"
|
|
|
#include "cos_sys_config.h"
|
|
|
#include "cos_config.h"
|
|
@@ -67,7 +67,7 @@ ufile_error ufile_load_config_from_json(const char * json_buf, ufile_config * cf
|
|
|
|
|
|
void ufile_free_config(ufile_config cfg)
|
|
|
{
|
|
|
- //此函数无调用,暂且不实现
|
|
|
+ //姝ゅ嚱鏁版棤璋冪敤锛屾殏涓斾笉瀹炵幇
|
|
|
}
|
|
|
|
|
|
ufile_error ufile_sdk_initialize(const ufile_config cfg, int open_verbose)
|
|
@@ -87,24 +87,24 @@ void ufile_sdk_cleanup()
|
|
|
|
|
|
ufile_error ufile_head(const char * bucket_name, const char * key, ufile_file_info * info)
|
|
|
{
|
|
|
- //此函数无调用,暂且不实现
|
|
|
+ //姝ゅ嚱鏁版棤璋冪敤锛屾殏涓斾笉瀹炵幇
|
|
|
return ufile_error();
|
|
|
}
|
|
|
|
|
|
void ufile_free_file_info(ufile_file_info info)
|
|
|
{
|
|
|
- //此函数无调用,暂且不实现
|
|
|
+ //姝ゅ嚱鏁版棤璋冪敤锛屾殏涓斾笉瀹炵幇
|
|
|
}
|
|
|
|
|
|
ufile_error ufile_put_buf(const char * bucket_name, const char * key, const char * mime_type, char * buffer, size_t buf_len)
|
|
|
{
|
|
|
- //此函数无调用,暂且不实现
|
|
|
+ //姝ゅ嚱鏁版棤璋冪敤锛屾殏涓斾笉瀹炵幇
|
|
|
return ufile_error();
|
|
|
}
|
|
|
|
|
|
ufile_error ufile_put_file(const char * bucket_name, const char * key, const char * mime_type, FILE * file)
|
|
|
{
|
|
|
- //此函数无调用,暂且不实现
|
|
|
+ //姝ゅ嚱鏁版棤璋冪敤锛屾殏涓斾笉瀹炵幇
|
|
|
return ufile_error();
|
|
|
}
|
|
|
|
|
@@ -143,25 +143,25 @@ ufile_error ufile_delete(const char * bucket_name, const char * key)
|
|
|
|
|
|
ufile_error ufile_multiple_upload_init(ufile_mutipart_state * self, const char * bucket_name, const char * key, const char * mime_type)
|
|
|
{
|
|
|
- //此函数无调用,暂且不实现
|
|
|
+ //姝ゅ嚱鏁版棤璋冪敤锛屾殏涓斾笉瀹炵幇
|
|
|
return ufile_error();
|
|
|
}
|
|
|
|
|
|
ufile_error ufile_multiple_upload_part(ufile_mutipart_state * self, char * buffer, size_t buf_len, int part_number)
|
|
|
{
|
|
|
- //此函数无调用,暂且不实现
|
|
|
+ //姝ゅ嚱鏁版棤璋冪敤锛屾殏涓斾笉瀹炵幇
|
|
|
return ufile_error();
|
|
|
}
|
|
|
|
|
|
ufile_error ufile_multiple_upload_finish(ufile_mutipart_state * self)
|
|
|
{
|
|
|
- //此函数无调用,暂且不实现
|
|
|
+ //姝ゅ嚱鏁版棤璋冪敤锛屾殏涓斾笉瀹炵幇
|
|
|
return ufile_error();
|
|
|
}
|
|
|
|
|
|
ufile_error ufile_multiple_upload_abort(ufile_mutipart_state * self)
|
|
|
{
|
|
|
- //此函数无调用,暂且不实现
|
|
|
+ //姝ゅ嚱鏁版棤璋冪敤锛屾殏涓斾笉瀹炵幇
|
|
|
return ufile_error();
|
|
|
}
|
|
|
|
|
@@ -192,13 +192,13 @@ ufile_error ufile_download(const char * bucket_name, const char * key, FILE * fi
|
|
|
|
|
|
ufile_error ufile_download_piece(const char * bucket_name, const char * key, size_t start_position, char * buf, size_t buf_len, size_t * return_size)
|
|
|
{
|
|
|
- //此函数无调用,暂且不实现
|
|
|
+ //姝ゅ嚱鏁版棤璋冪敤锛屾殏涓斾笉瀹炵幇
|
|
|
return ufile_error();
|
|
|
}
|
|
|
|
|
|
ufile_error ufile_bucket_create(const char * bucket_name, const char * region, const char * bucket_type)
|
|
|
{
|
|
|
- //此函数无调用,暂且不实现
|
|
|
+ //姝ゅ嚱鏁版棤璋冪敤锛屾殏涓斾笉瀹炵幇
|
|
|
return ufile_error();
|
|
|
}
|
|
|
|