ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
windows_service.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdbool.h>
4
5#ifdef _WIN32
6int windows_service_dispatch(int argc, char **argv, int (*run)(int, char **),
7 void (*stop)(void));
9void windows_service_ready(void);
10#else
11static inline bool windows_service_is_active(void) { return false; }
12
13static inline void windows_service_ready(void) {}
14#endif
int windows_service_dispatch(int argc, char **argv, int(*run)(int, char **), void(*stop)(void))
void windows_service_ready(void)
bool windows_service_is_active(void)