From 9da3a20a0b58374618d8723d7c961dd45491ba13 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Sat, 20 Jun 2020 15:12:13 +0200 Subject: Rename scfg to server throughout for consistency --- server.h | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'server.h') diff --git a/server.h b/server.h index ae0503a..80400a1 100644 --- a/server.h +++ b/server.h @@ -74,49 +74,49 @@ struct server { void server_refdump(struct server *server); -void server_delete(struct cfg *cfg, struct server *scfg); +void server_delete(struct cfg *cfg, struct server *server); void server_delete_by_name(struct cfg *cfg, const char *name); -bool server_start(struct cfg *cfg, struct server *scfg); +bool server_start(struct cfg *cfg, struct server *server); -bool server_stop(struct cfg *cfg, struct server *scfg); +bool server_stop(struct cfg *cfg, struct server *server); -bool server_commit(struct cfg *cfg, struct server *scfg); +bool server_commit(struct cfg *cfg, struct server *server); -bool server_add_remote(struct cfg *cfg, struct server *scfg, +bool server_add_remote(struct cfg *cfg, struct server *server, struct saddr *remote); -bool server_add_local(struct cfg *cfg, struct server *scfg, +bool server_add_local(struct cfg *cfg, struct server *server, struct saddr *saddr); -bool server_add_rcon(struct cfg *cfg, struct server *scfg, +bool server_add_rcon(struct cfg *cfg, struct server *server, struct saddr *rcon); -bool server_set_rcon_password(struct cfg *cfg, struct server *scfg, +bool server_set_rcon_password(struct cfg *cfg, struct server *server, const char *password); -bool server_set_systemd_service(struct cfg *cfg, struct server *scfg, +bool server_set_systemd_service(struct cfg *cfg, struct server *server, const char *service); -bool server_set_stop_method(struct cfg *cfg, struct server *scfg, +bool server_set_stop_method(struct cfg *cfg, struct server *server, enum server_stop_method stop_method); -bool server_set_start_method(struct cfg *cfg, struct server *scfg, +bool server_set_start_method(struct cfg *cfg, struct server *server, enum server_start_method start_method); -bool server_set_stop_exec(struct cfg *cfg, struct server *scfg, const char *cmd); +bool server_set_stop_exec(struct cfg *cfg, struct server *server, const char *cmd); -bool server_set_start_exec(struct cfg *cfg, struct server *scfg, const char *cmd); +bool server_set_start_exec(struct cfg *cfg, struct server *server, const char *cmd); -bool server_set_idle_timeout(struct cfg *cfg, struct server *scfg, uint16_t timeout); +bool server_set_idle_timeout(struct cfg *cfg, struct server *server, uint16_t timeout); -bool server_set_port(struct cfg *cfg, struct server *scfg, uint16_t port); +bool server_set_port(struct cfg *cfg, struct server *server, uint16_t port); -bool server_set_type(struct cfg *cfg, struct server *scfg, +bool server_set_type(struct cfg *cfg, struct server *server, enum server_type type); -bool server_set_pretty_name(struct cfg *cfg, struct server *scfg, +bool server_set_pretty_name(struct cfg *cfg, struct server *server, const char *pretty_name); struct server *server_new(struct cfg *cfg, const char *name); -- cgit v1.2.3