File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,8 @@ struct aws_s3_buffer_pool_config {
141141 * by logging failure reason, returning null and raising aws_error.
142142 */
143143typedef struct aws_s3_buffer_pool * (aws_s3_buffer_pool_factory_fn )(struct aws_allocator * allocator ,
144- struct aws_s3_buffer_pool_config config );
144+ struct aws_s3_buffer_pool_config config ,
145+ void * user_data );
145146
146147AWS_EXTERN_C_END
147148AWS_POP_SANE_WARNING_LEVEL
Original file line number Diff line number Diff line change @@ -606,6 +606,9 @@ struct aws_s3_client_config {
606606 * if not set creates default implementation of the buffer pool.
607607 */
608608 aws_s3_buffer_pool_factory_fn * buffer_pool_factory_fn ;
609+
610+ /* User data thats passed into pool factory. */
611+ void * buffer_pool_user_data ;
609612};
610613
611614struct aws_s3_checksum_config {
Original file line number Diff line number Diff line change @@ -367,7 +367,8 @@ struct aws_s3_client *aws_s3_client_new(
367367 };
368368
369369 if (client_config -> buffer_pool_factory_fn ) {
370- client -> buffer_pool = client_config -> buffer_pool_factory_fn (allocator , buffer_pool_config );
370+ client -> buffer_pool = client_config -> buffer_pool_factory_fn (allocator , buffer_pool_config ,
371+ client_config -> buffer_pool_user_data );
371372 } else {
372373
373374 client -> buffer_pool = aws_s3_default_buffer_pool_new (allocator , buffer_pool_config );
You can’t perform that action at this time.
0 commit comments