Fix stub signatures to match headers

Correct function signatures for pCloud API stubs
This commit is contained in:
Levi Neely 2026-03-10 16:59:05 +01:00
parent 8fbb0d1368
commit 236c1d20a0
1 changed files with 8 additions and 18 deletions

View File

@ -14,6 +14,10 @@ extern "C" {
#include "../pclsync/pdbg.h" #include "../pclsync/pdbg.h"
#include "../pclsync/ppath.h" #include "../pclsync/ppath.h"
#include "../pclsync/putil.h" #include "../pclsync/putil.h"
#include "../pclsync/psock.h"
#include "../pclsync/papi.h"
#include "../pclsync/psql.h"
#include "../pclsync/psettings.h"
/* Thread-local storage stub */ /* Thread-local storage stub */
__thread const char *psync_thread_name = "test"; __thread const char *psync_thread_name = "test";
@ -29,28 +33,14 @@ int psync_setting_get_bool(int setting) {
} }
/* papi stubs */ /* papi stubs */
void *papi_connect(const char *binapi, int ssl) { psock_t *papi_connect(const char *hostname, int usessl) {
(void)binapi; (void)hostname;
(void)ssl; (void)usessl;
return NULL;
}
int papi_send(void *sock, void *params, int count) {
(void)sock;
(void)params;
(void)count;
return -1;
}
void *papi_find_result(void *res, const char *name, int type) {
(void)res;
(void)name;
(void)type;
return NULL; return NULL;
} }
/* psock stubs */ /* psock stubs */
void psock_close(void *sock) { void psock_close(psock_t *sock) {
(void)sock; (void)sock;
} }