|
Server Wait On Clients System - API Documentation v1.8.3
Server Wait On Clients System.
|
Header file for Server Wait on Clients server-side library. More...
#include <libmgec/mge-portability.h>

Go to the source code of this file.
Functions | |
| int | sws_show_status (void) |
| Display clients with active locks to stdout. | |
| int | sws_show_block_status (void) |
| Display status of server blocking. | |
| int | sws_srv_block (void) |
| Request server blocking. | |
| int | sws_srv_unblock (void) |
| Request removal of server blocking. | |
| int | sws_show_cli_blocklist (void) |
| Display list of blocked clients to stdout. | |
| int | sws_server_wait (void) |
| Wait until no client locks remain. | |
| int | sws_release (const char *lockname) |
| Remove a lock. | |
| int | sws_cli_block (const char *blockname) |
| Set a client to blocked. | |
| int | sws_cli_unblock (const char *blockname) |
| Unblock a client block. | |
| int | sws_end_daemon (void) |
| Terminate the daemon. | |
| int | sws_reload_config (void) |
| Request the daemon to reload the config file. | |
| __attribute__ ((const)) const char *libswocserver_get_pkg_version(void) | |
| Get the git-describe based package version. | |
| void | libswocserver_print_pkg_version (void) |
| Print the package version string to stdout. | |
| void | libswocserver_print_src_version (void) |
| Print the source version string to stdout. | |
Variables | |
| BEGIN_C_DECLS char | locks_held [] |
| Holds the number of locks currently held during swc_client_wait(). | |
Header file for Server Wait on Clients server-side library.
Released under the GPLv3 only.
SPDX-License-Identifier: GPL-3.0-only
| __attribute__ | ( | (const) | ) | const |
Get the git-describe based package version.
Get the source version.
| void libswocserver_print_pkg_version | ( | void | ) |
Print the package version string to stdout.
| void libswocserver_print_src_version | ( | void | ) |
Print the source version string to stdout.
| int sws_cli_block | ( | const char * | blockname | ) |
Set a client to blocked.
On error mge_errno is set.
| blockname | Client to block. |
| int sws_cli_unblock | ( | const char * | blockname | ) |
Unblock a client block.
On error mge_errno is set.
| blockname | Client to unblock. |
| int sws_end_daemon | ( | void | ) |
Terminate the daemon.
Send a message to the daemon asking it to terminate. On error mge_errno is set.
| int sws_release | ( | const char * | lockname | ) |
Remove a lock.
On error mge_errno is set.
| lockname | Client whose lock is to be removed. |
| int sws_reload_config | ( | void | ) |
Request the daemon to reload the config file.
Send a message to the daemon asking it to reload it's configuration file. On error mge_errno is set.
| int sws_server_wait | ( | void | ) |
Wait until no client locks remain.
On error mge_errno is set.
| int sws_show_block_status | ( | void | ) |
Display status of server blocking.
On error mge_errno is set.
| int sws_show_cli_blocklist | ( | void | ) |
Display list of blocked clients to stdout.
On error mge_errno is set.
| int sws_show_status | ( | void | ) |
Display clients with active locks to stdout.
On error mge_errno is set.
| int sws_srv_block | ( | void | ) |
Request server blocking.
On error mge_errno is set.
| int sws_srv_unblock | ( | void | ) |
Request removal of server blocking.
On error mge_errno is set.
|
extern |
Holds the number of locks currently held during swc_client_wait().
This value can be accessed in a handler if a signal is received.
Holds the number of locks currently held during swc_client_wait().
This value can be accessed in a handler if a signal is received.