mirror of
https://github.com/pikami/cosmium.git
synced 2025-02-02 22:18:38 +00:00
25 lines
601 B
C
25 lines
601 B
C
#include "shared.h"
|
|
|
|
void test_StopServerInstance()
|
|
{
|
|
typedef int (*StopServerInstanceFn)(char *);
|
|
StopServerInstanceFn StopServerInstance = (StopServerInstanceFn)load_function("StopServerInstance");
|
|
|
|
if (!StopServerInstance)
|
|
{
|
|
fprintf(stderr, "Failed to find StopServerInstance function\n");
|
|
return;
|
|
}
|
|
|
|
char *serverName = "TestServer";
|
|
int result = StopServerInstance(serverName);
|
|
if (result == 0)
|
|
{
|
|
printf("StopServerInstance: SUCCESS\n");
|
|
}
|
|
else
|
|
{
|
|
printf("StopServerInstance: FAILED (result = %d)\n", result);
|
|
}
|
|
}
|