feat: export to local file

This commit is contained in:
Anthony Laibe 2021-09-15 14:12:07 +02:00 committed by Michael Bradley, Jr
parent b67014a56a
commit a431a8bb75
2 changed files with 6 additions and 1 deletions

View File

@ -60,3 +60,6 @@ proc url_host*(host: string): string =
proc url_replaceHostAndAddPath*(url: string, newHost: string, protocol: string = "", pathPrefix: string = ""): string = proc url_replaceHostAndAddPath*(url: string, newHost: string, protocol: string = "", pathPrefix: string = ""): string =
result = $(dos_qurl_replaceHostAndAddPath(url.cstring, protocol.cstring, newHost.cstring, pathPrefix.cstring)) result = $(dos_qurl_replaceHostAndAddPath(url.cstring, protocol.cstring, newHost.cstring, pathPrefix.cstring))
proc url_toLocalFile*(url: string): string =
result = $(dos_to_local_file(url.cstring))

View File

@ -355,3 +355,5 @@ proc dos_statusosnotification_show_notification(vptr: DosStatusOSNotificationObj
{.cdecl, dynlib: dynLibName, importc.} {.cdecl, dynlib: dynLibName, importc.}
proc dos_statusosnotification_delete(vptr: DosStatusOSNotificationObject) proc dos_statusosnotification_delete(vptr: DosStatusOSNotificationObject)
{.cdecl, dynlib: dynLibName, importc.} {.cdecl, dynlib: dynLibName, importc.}
proc dos_to_local_file(filpath: cstring): cstring {.cdecl, dynlib: dynLibName, importc.}