Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion core/libs/prx/libcurl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ add_library(libcurl SHARED EXCLUDE_FROM_ALL
Export.cpp
src/CurlSockets.cpp
src/FormFree.cpp
src/CurlFormat.cpp
)
if(WIN32)
target_compile_definitions(libcurl PRIVATE FD_SETSIZE=1024)
Expand Down Expand Up @@ -123,7 +124,7 @@ if(BUILD_TESTING)
"PATH=path_list_prepend:$<TARGET_FILE_DIR:libcurl>")
endif()

set(curlTestTopics Utility Url SlistMime Options Handles Transfers MimeCallback Allocators Sockets)
set(curlTestTopics Utility Url SlistMime Options Handles Transfers MimeCallback Allocators Sockets Format FormatStreams)
foreach(test_topic IN LISTS curlTestTopics)
set(test_name guest_curl_${test_topic}_tests)
string(TOLOWER "${test_topic}" test_slug)
Expand Down
36 changes: 26 additions & 10 deletions core/libs/prx/libcurl/Export.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "prx/libcurl/src/CurlHost.hpp"
#include "prx/libcurl/src/CurlFormat.hpp"
#include "prx/libcurl/src/CurlSockets.hpp"
#include "prx/libcurl/include/InventoryExports.hpp"
#include "prx/libcurl/include/Api.hpp"
Expand Down Expand Up @@ -1198,43 +1199,58 @@ void APS5_VABI curl_mime_free_nid_postfix(curl_mime* mime) {


int APS5_VABI curl_mvfprintf_nid_postfix(std::FILE* whereto, const char* format, VaList* args) {
NotImplemented_nid_no_patch(__func__);
return CurlFormat::FormatStream(reinterpret_cast<FileStream*>(whereto), format, args);
}

int APS5_VABI curl_mfprintf_nid_postfix(std::FILE* whereto, const char* format, ...) {
NotImplemented_nid_no_patch(__func__);
CURL_ARGS_START(format);
const int result = CurlFormat::FormatStream(reinterpret_cast<FileStream*>(whereto), format, args);
CURL_ARGS_END();
return result;
}

int APS5_VABI curl_mvsprintf_nid_postfix(char* buffer, const char* format, VaList* args) {
NotImplemented_nid_no_patch(__func__);
return CurlFormat::FormatUnbounded(buffer, format, args);
}

int APS5_VABI curl_msprintf_nid_postfix(char* buffer, const char* format, ...) {
NotImplemented_nid_no_patch(__func__);
CURL_ARGS_START(format);
const int result = CurlFormat::FormatUnbounded(buffer, format, args);
CURL_ARGS_END();
return result;
}

int APS5_VABI curl_mvsnprintf_nid_postfix(char* buffer, size_t maxlength, const char* format, VaList* args) {
NotImplemented_nid_no_patch(__func__);
return CurlFormat::FormatBounded(buffer, maxlength, format, args);
}

int APS5_VABI curl_msnprintf_nid_postfix(char* buffer, size_t maxlength, const char* format, ...) {
NotImplemented_nid_no_patch(__func__);
CURL_ARGS_START(format);
const int result = CurlFormat::FormatBounded(buffer, maxlength, format, args);
CURL_ARGS_END();
return result;
}

int APS5_VABI curl_mvprintf_nid_postfix(const char* format, VaList* args) {
NotImplemented_nid_no_patch(__func__);
return CurlFormat::FormatStream(&_Stdout_nid_postfix, format, args);
}

int APS5_VABI curl_mprintf_nid_postfix(const char* format, ...) {
NotImplemented_nid_no_patch(__func__);
CURL_ARGS_START(format);
const int result = CurlFormat::FormatStream(&_Stdout_nid_postfix, format, args);
CURL_ARGS_END();
return result;
}

char* APS5_VABI curl_mvaprintf_nid_postfix(const char* format, VaList* args) {
NotImplemented_nid_no_patch(__func__);
return CurlFormat::FormatAllocated(format, args);
}

char* APS5_VABI curl_maprintf_nid_postfix(const char* format, ...) {
NotImplemented_nid_no_patch(__func__);
CURL_ARGS_START(format);
char* const result = CurlFormat::FormatAllocated(format, args);
CURL_ARGS_END();
return result;
}

std::int32_t APS5_VABI curl_share_cleanup_nid_postfix(CURLSH* share_handle) {
Expand Down
Loading
Loading