X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fcontrol.c;h=4b4a1e6e2f15473861b2a3629602982a2b399e13;hb=bea3040e0456bc002dfa77fbf49bc37b2ee609f1;hp=5c8a4103feceb3672c79aa0cde7b1298973854f4;hpb=0ef0945e8d83258400fabc61fa81725c5e8e533f;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 +}