libmpdclient 2.22
settings.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2// Copyright The Music Player Daemon Project
3
13#ifndef MPD_SETTINGS_H
14#define MPD_SETTINGS_H
15
16#include <stdbool.h>
17
23struct mpd_settings;
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
50struct mpd_settings *
51mpd_settings_new(const char *host, unsigned port, unsigned timeout_ms,
52 const char *reserved, const char *password);
53
59void
61
67const char *
68mpd_settings_get_host(const struct mpd_settings *settings);
69
75unsigned
76mpd_settings_get_port(const struct mpd_settings *settings);
77
83unsigned
85
91const char *
93
94#ifdef __cplusplus
95}
96#endif
97
98#endif
struct mpd_settings * mpd_settings_new(const char *host, unsigned port, unsigned timeout_ms, const char *reserved, const char *password)
unsigned mpd_settings_get_timeout_ms(const struct mpd_settings *settings)
const char * mpd_settings_get_host(const struct mpd_settings *settings)
void mpd_settings_free(struct mpd_settings *settings)
unsigned mpd_settings_get_port(const struct mpd_settings *settings)
const char * mpd_settings_get_password(const struct mpd_settings *settings)