settings.h
Go to the documentation of this file.
// SPDX-License-Identifier: BSD-2-Clause
// Copyright The Music Player Daemon Project
#ifndef MPD_SETTINGS_H
#define MPD_SETTINGS_H
#include <stdbool.h>
struct mpd_settings;
#ifdef __cplusplus
extern "C" {
#endif
struct mpd_settings *
mpd_settings_new(const char *host, unsigned port, unsigned timeout_ms,
const char *reserved, const char *password);
void
mpd_settings_free(struct mpd_settings *settings);
const char *
mpd_settings_get_host(const struct mpd_settings *settings);
unsigned
mpd_settings_get_port(const struct mpd_settings *settings);
unsigned
mpd_settings_get_timeout_ms(const struct mpd_settings *settings);
const char *
mpd_settings_get_password(const struct mpd_settings *settings);
#ifdef __cplusplus
}
#endif
#endif
mpd_settings_new
struct mpd_settings * mpd_settings_new(const char *host, unsigned port, unsigned timeout_ms, const char *reserved, const char *password)
mpd_settings_get_timeout_ms
unsigned mpd_settings_get_timeout_ms(const struct mpd_settings *settings)
mpd_settings_get_host
const char * mpd_settings_get_host(const struct mpd_settings *settings)
mpd_settings_free
void mpd_settings_free(struct mpd_settings *settings)
mpd_settings_get_port
unsigned mpd_settings_get_port(const struct mpd_settings *settings)
mpd_settings_get_password
const char * mpd_settings_get_password(const struct mpd_settings *settings)
mpd_settings