return get_casted_workstation(workstation)->getAttachedStorageList();
}
-surf_action_t surf_workstation_open(surf_resource_t workstation, const char* mount, const char* path){
- return get_casted_workstation(workstation)->open(mount, path);
+surf_action_t surf_workstation_open(surf_resource_t workstation, const char* fullpath){
+ return get_casted_workstation(workstation)->open(fullpath);
}
surf_action_t surf_workstation_close(surf_resource_t workstation, surf_file_t fd){
return static_cast<StoragePtr>(surf_storage_resource_priv(resource))->getSize();
}
+const char* surf_storage_get_host(surf_resource_t resource){
+ return static_cast<StoragePtr>(surf_storage_resource_priv(resource))->p_attach;
+}
+
void surf_storage_rename(surf_resource_t resource, const char* src, const char* dest){
static_cast<StoragePtr>(surf_storage_resource_priv(resource))->rename(src, dest);
}