Expose repository functions to sharedlibs

This commit is contained in:
Pijus Kamandulis
2024-12-20 20:25:32 +02:00
parent 363f822e5a
commit bcf4b513b6
10 changed files with 484 additions and 41 deletions

View File

@@ -1,6 +1,6 @@
#include "shared.h"
void test_StopServerInstance()
int test_StopServerInstance()
{
typedef int (*StopServerInstanceFn)(char *);
StopServerInstanceFn StopServerInstance = (StopServerInstanceFn)load_function("StopServerInstance");
@@ -8,7 +8,7 @@ void test_StopServerInstance()
if (!StopServerInstance)
{
fprintf(stderr, "Failed to find StopServerInstance function\n");
return;
return 0;
}
char *serverName = "TestServer";
@@ -20,5 +20,8 @@ void test_StopServerInstance()
else
{
printf("StopServerInstance: FAILED (result = %d)\n", result);
return 0;
}
return 1;
}