Server Wait On Clients System - Full Internal Documentation v1.7.4
Server Wait On Clients System.
Loading...
Searching...
No Matches
libswocserver.h
Go to the documentation of this file.
1
14#ifndef LIBSWOCSERVER_H
15#define LIBSWOCSERVER_H
16
17#include <libmgec/mge-portability.h>
18
19BEGIN_C_DECLS
20
21extern char locks_held[];
22
23int sws_show_status(void);
24
25int sws_show_block_status(void);
26
27int sws_srv_block(void);
28
29int sws_srv_unblock(void);
30
32
33int sws_server_wait(void);
34
35int sws_release(const char *lockname);
36
37int sws_cli_block(const char *blockname);
38
39int sws_cli_unblock(const char *blockname);
40
41int sws_end_daemon(void);
42
43int sws_reload_config(void);
44
45__attribute__((const)) const char *libswocserver_get_pkg_version(void);
46
47__attribute__((const)) const char *libswocserver_get_src_version(void);
48
50
52
53END_C_DECLS
54
55#endif /* ndef LIBSWOCSERVER_H */
int sws_srv_unblock(void)
Request removal of server blocking.
Definition optionproc.c:210
int sws_end_daemon(void)
Terminate the daemon.
Definition optionproc.c:534
int sws_release(const char *lockname)
Remove a lock.
Definition optionproc.c:372
int sws_show_status(void)
Display clients with active locks to stdout.
Definition optionproc.c:55
BEGIN_C_DECLS char locks_held[]
Holds the number of locks currently held during swc_client_wait().
Definition optionproc.c:49
int sws_show_block_status(void)
Display status of server blocking.
Definition optionproc.c:111
int sws_cli_block(const char *blockname)
Set a client to blocked.
Definition optionproc.c:428
__attribute__((const)) const char *libswocserver_get_pkg_version(void)
Get the git-describe based package version.
Definition version.c:24
int sws_show_cli_blocklist(void)
Display list of blocked clients to stdout.
Definition optionproc.c:258
int sws_srv_block(void)
Request server blocking.
Definition optionproc.c:162
void libswocserver_print_pkg_version(void)
Print the package version string to stdout.
Definition version.c:41
int sws_reload_config(void)
Request the daemon to reload the config file.
Definition optionproc.c:584
void libswocserver_print_src_version(void)
Print the source version string to stdout.
Definition version.c:50
int sws_server_wait(void)
Wait until no client locks remain.
Definition optionproc.c:313
int sws_cli_unblock(const char *blockname)
Unblock a client block.
Definition optionproc.c:481