publish changes
This commit is contained in:
parent
afc5064a7b
commit
ac2c6ac843
1605 changed files with 3354 additions and 3354 deletions
|
@ -96,26 +96,26 @@
|
|||
</VcpkgInstalledDir>
|
||||
<VcpkgUseStatic>false</VcpkgUseStatic>
|
||||
<VcpkgConfiguration>Debug</VcpkgConfiguration>
|
||||
<VcpkgTriplet>x86-windows-static-md</VcpkgTriplet>
|
||||
<VcpkgTriplet>x86-arch-static-md</VcpkgTriplet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<VcpkgInstalledDir>
|
||||
</VcpkgInstalledDir>
|
||||
<VcpkgUseStatic>false</VcpkgUseStatic>
|
||||
<VcpkgTriplet>x86-windows-static-md</VcpkgTriplet>
|
||||
<VcpkgTriplet>x86-arch-static-md</VcpkgTriplet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<VcpkgInstalledDir>
|
||||
</VcpkgInstalledDir>
|
||||
<VcpkgUseStatic>false</VcpkgUseStatic>
|
||||
<VcpkgTriplet>x86-windows-static-md</VcpkgTriplet>
|
||||
<VcpkgTriplet>x86-arch-static-md</VcpkgTriplet>
|
||||
<VcpkgConfiguration>Debug</VcpkgConfiguration>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<VcpkgInstalledDir>
|
||||
</VcpkgInstalledDir>
|
||||
<VcpkgUseStatic>false</VcpkgUseStatic>
|
||||
<VcpkgTriplet>x86-windows-static-md</VcpkgTriplet>
|
||||
<VcpkgTriplet>x86-arch-static-md</VcpkgTriplet>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#include <windows.h>
|
||||
#include <arch.h>
|
||||
#include "NXFileObject.h"
|
||||
|
||||
#include "nx/nxfile.h"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
/* TODO: benski> test this with a server that does not return content-length. I bet we could get it to work */
|
||||
|
||||
/* TODO: benski> on windows, we can use a single CreateFile HANDLE for both reading and writing
|
||||
/* TODO: benski> on arch, we can use a single CreateFile HANDLE for both reading and writing
|
||||
and use ReadFile(..., &overlapped) to maintain two separate file pointers
|
||||
this should improve performance as they will share the same cache
|
||||
_might_ have to use async I/O to get it to work (but use it synchronously by waiting on the handle after making the call
|
||||
|
@ -625,7 +625,7 @@ ns_error_t NXFileObject_ProgressiveDownloader::Read(void *buffer, size_t bytes_r
|
|||
}
|
||||
|
||||
/* TODO: benski> if r < bytes_requested, then we need to flush the buffer.
|
||||
on windows, we can use fflush(progressive_file_read)
|
||||
on arch, we can use fflush(progressive_file_read)
|
||||
on other platforms it's not guaranteed! */
|
||||
size_t r = fread(buffer, 1, bytes_requested, progressive_file_read);
|
||||
this->position += r;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#include <windows.h>
|
||||
#include <arch.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include "nx/nxfile.h"
|
||||
#include <sys/stat.h>
|
||||
|
||||
/* windows implementation */
|
||||
/* arch implementation */
|
||||
struct nx_data_struct_t
|
||||
{
|
||||
volatile size_t ref_count;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include "../../nx/nxfile.h"
|
||||
#include "../../nx/nxstring.h"
|
||||
|
||||
/* windows implementation */
|
||||
/* arch implementation */
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#include <windows.h>
|
||||
#include <arch.h>
|
||||
#include "../../nx/nxapi.h"
|
||||
#include <stdio.h> // for FILE
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "nxlog.h"
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
//#include <windows.h>
|
||||
//#include <arch.h>
|
||||
|
||||
static char *nx_log_tag = "libreplicant";
|
||||
#define MAX_FMT_SIZE 512
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#include <windows.h>
|
||||
#include <arch.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#pragma once
|
||||
#include <windows.h>
|
||||
#include <arch.h>
|
||||
#include "nx/nxapi.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#include <windows.h>
|
||||
#include <arch.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#pragma once
|
||||
#include "../../foundation/types.h"
|
||||
#include <windows.h>
|
||||
#include <arch.h>
|
||||
#include "../../nx/nxapi.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#include <windows.h>
|
||||
#include <arch.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -22,7 +22,7 @@ extern "C" {
|
|||
|
||||
NX_API nx_uri_t NXURIMalloc(size_t characters);
|
||||
NX_API int NXURICreateWithNXString(nx_uri_t *uri, nx_string_t string);
|
||||
NX_API int NXURICreateFromPath(nx_uri_t *uri, const wchar_t *filename, const nx_uri_t path); // windows only
|
||||
NX_API int NXURICreateFromPath(nx_uri_t *uri, const wchar_t *filename, const nx_uri_t path); // arch only
|
||||
NX_API int NXURICreateWithPath(nx_uri_t *uri, const nx_uri_t filename, const nx_uri_t path);
|
||||
NX_API int NXURICreateWithNXString(nx_uri_t *new_value, nx_string_t string);
|
||||
NX_API int NXURICreateTempForFilepath(nx_uri_t *out_temp, nx_uri_t filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue