X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fcontrol.c;h=4b4a1e6e2f15473861b2a3629602982a2b399e13;hb=f858232d7c564f14e6d2fb9d616f8e12a1ec9171;hp=5c8a4103feceb3672c79aa0cde7b1298973854f4;hpb=6d02539604cd90ae992e69d3f6a839044b6c6fef;p=matches%2FMCTX3420.git diff --git a/server/control.c b/server/control.c index 5c8a410..4b4a1e6 100644 --- a/server/control.c +++ b/server/control.c @@ -15,7 +15,8 @@ typedef struct ControlData { ControlData g_controls = {CONTROL_STOP, PTHREAD_MUTEX_INITIALIZER, {0}}; -static bool PathExists(const char *path) { +bool PathExists(const char *path) +{ FILE *fp = fopen(path, "r"); if (fp) { fclose(fp); @@ -177,4 +178,4 @@ const char * Control_GetModeName() { */ const struct timeval* Control_GetStartTime() { return &g_controls.start_time; -} \ No newline at end of file +}