@@ -151,19 +151,31 @@ impl CTankerLib {
151151
152152 let fut = {
153153 let coptions = tanker_options {
154- version : 3 ,
154+ version : 4 ,
155155 app_id : options. app_id . as_ptr ( ) ,
156156 url : options
157157 . url
158158 . as_ref ( )
159159 . map ( |s| s. as_ptr ( ) )
160160 . unwrap_or ( std:: ptr:: null ( ) ) ,
161- writable_path : options. writable_path . as_ptr ( ) ,
161+ persistent_path : options. persistent_path . as_ptr ( ) ,
162+ cache_path : options. cache_path . as_ptr ( ) ,
162163 sdk_type : sdk_type. as_ptr ( ) ,
163164 sdk_version : sdk_version. as_ptr ( ) ,
164- http_send_request : None ,
165- http_cancel_request : None ,
166- http_data : std:: ptr:: null_mut ( ) ,
165+ http_options : tanker_http_options {
166+ send_request : None ,
167+ cancel_request : None ,
168+ data : std:: ptr:: null_mut ( ) ,
169+ } ,
170+ datastore_options : tanker_datastore_options {
171+ open : None ,
172+ close : None ,
173+ nuke : None ,
174+ put_serialized_device : None ,
175+ find_serialized_device : None ,
176+ put_cache_values : None ,
177+ find_cache_values : None ,
178+ } ,
167179 } ;
168180 unsafe { CFuture :: new ( tanker_call ! ( self , tanker_create( & coptions) ) ) }
169181 } ;
0 commit comments