Server Wait On Clients System - Full Internal Documentation  v1.7.4
Server Wait On Clients System.
libswocclient.h
Go to the documentation of this file.
1 
14 #ifndef LIBSWOCCLIENT_H
15 #define LIBSWOCCLIENT_H
16 
17 #include <libmgec/mge-portability.h>
18 
19 BEGIN_C_DECLS
20 
21 extern char locks_held[];
22 
23 int swc_show_status(void);
24 
26 
27 int swc_block(void);
28 
29 int swc_unblock(void);
30 
31 int swc_set_lock(void);
32 
33 int swc_rel_lock(void);
34 
35 int swc_client_wait(const char *cnumlocks);
36 
37 int swc_reset(void);
38 
39 __attribute__((const)) const char *libswocclient_get_pkg_version(void);
40 
41 __attribute__((const)) const char *libswocclient_get_src_version(void);
42 
44 
46 
47 END_C_DECLS
48 
49 #endif /* ndef LIBSWOCCLIENT_H */
BEGIN_C_DECLS char locks_held[]
Holds the number of locks currently held during swc_client_wait().
Definition: optionproc.c:49
int swc_set_lock(void)
Set lock flag on server.
Definition: optionproc.c:257
void libswocclient_print_pkg_version(void)
Print the package version string to stdout.
Definition: version.c:41
void libswocclient_print_src_version(void)
Print the source version string to stdout.
Definition: version.c:50
int swc_show_srv_block_status(void)
Display status of server blocking.
Definition: optionproc.c:108
__attribute__((const)) const char *libswocclient_get_pkg_version(void)
Get the source version.
Definition: version.c:33
int swc_rel_lock(void)
Release lock flag on server.
Definition: optionproc.c:306
int swc_client_wait(const char *cnumlocks)
Wait until only a maximum of cnumlocks for this client remains.
Definition: optionproc.c:359
int swc_reset(void)
Reset the client on the server to 0 locks and unblocked.
Definition: optionproc.c:436
int swc_show_status(void)
Display client&#39;s lock status.
Definition: optionproc.c:56
int swc_unblock(void)
Remove block flag on server to allow this client to set locks.
Definition: optionproc.c:208
int swc_block(void)
Set block flag on server to prevent this client from setting any more locks.
Definition: optionproc.c:159