search.h
Go to the documentation of this file.
// SPDX-License-Identifier: BSD-3-Clause
// Copyright The Music Player Daemon Project
#ifndef LIBMPDCLIENT_SEARCH_H
#define LIBMPDCLIENT_SEARCH_H
#include "connection.h"
#include "tag.h"
#include "position.h"
#include "compiler.h"
#include <stdbool.h>
#include <time.h>
enum mpd_operator {
MPD_OPERATOR_DEFAULT,
};
#ifdef __cplusplus
extern "C" {
#endif
bool
mpd_search_db_songs(struct mpd_connection *connection, bool exact);
bool
mpd_search_add_db_songs(struct mpd_connection *connection, bool exact);
bool
mpd_search_add_db_songs_to_playlist(struct mpd_connection *connection,
const char *playlist_name);
bool
mpd_search_queue_songs(struct mpd_connection *connection, bool exact);
bool
mpd_search_db_tags(struct mpd_connection *connection, enum mpd_tag_type type);
bool mpd_count_db_songs(struct mpd_connection *connection);
bool
mpd_searchcount_db_songs(struct mpd_connection *connection);
bool
mpd_search_add_base_constraint(struct mpd_connection *connection,
enum mpd_operator oper,
const char *value);
bool
mpd_search_add_uri_constraint(struct mpd_connection *connection,
enum mpd_operator oper,
const char *value);
bool
mpd_search_add_tag_constraint(struct mpd_connection *connection,
enum mpd_operator oper,
enum mpd_tag_type type,
const char *value);
bool
mpd_search_add_any_tag_constraint(struct mpd_connection *connection,
enum mpd_operator oper,
const char *value);
bool
mpd_search_add_modified_since_constraint(struct mpd_connection *connection,
enum mpd_operator oper,
time_t value);
bool
mpd_search_add_added_since_constraint(struct mpd_connection *connection,
enum mpd_operator oper,
time_t value);
bool
mpd_search_add_expression(struct mpd_connection *connection,
const char *expression);
bool
mpd_search_add_group_tag(struct mpd_connection *connection,
enum mpd_tag_type type);
bool
mpd_search_add_sort_name(struct mpd_connection *connection,
const char *name, bool descending);
bool
mpd_search_add_sort_tag(struct mpd_connection *connection,
enum mpd_tag_type type, bool descending);
bool
mpd_search_add_window(struct mpd_connection *connection,
unsigned start, unsigned end);
bool
mpd_search_add_position(struct mpd_connection *connection,
unsigned position, enum mpd_position_whence whence);
bool
mpd_search_commit(struct mpd_connection *connection);
void
mpd_search_cancel(struct mpd_connection *connection);
mpd_malloc
struct mpd_pair *
mpd_recv_pair_tag(struct mpd_connection *connection, enum mpd_tag_type type);
#ifdef __cplusplus
}
#endif
#endif
connection.h
MPD client library.
position.h
MPD client library.
mpd_position_whence
mpd_position_whence
Definition position.h:13
mpd_search_queue_songs
bool mpd_search_queue_songs(struct mpd_connection *connection, bool exact)
mpd_search_db_tags
bool mpd_search_db_tags(struct mpd_connection *connection, enum mpd_tag_type type)
mpd_search_cancel
void mpd_search_cancel(struct mpd_connection *connection)
mpd_search_add_db_songs
bool mpd_search_add_db_songs(struct mpd_connection *connection, bool exact)
mpd_search_add_expression
bool mpd_search_add_expression(struct mpd_connection *connection, const char *expression)
mpd_search_add_any_tag_constraint
bool mpd_search_add_any_tag_constraint(struct mpd_connection *connection, enum mpd_operator oper, const char *value)
mpd_search_add_base_constraint
bool mpd_search_add_base_constraint(struct mpd_connection *connection, enum mpd_operator oper, const char *value)
mpd_search_add_group_tag
bool mpd_search_add_group_tag(struct mpd_connection *connection, enum mpd_tag_type type)
mpd_search_add_db_songs_to_playlist
bool mpd_search_add_db_songs_to_playlist(struct mpd_connection *connection, const char *playlist_name)
mpd_search_commit
bool mpd_search_commit(struct mpd_connection *connection)
mpd_search_add_sort_tag
bool mpd_search_add_sort_tag(struct mpd_connection *connection, enum mpd_tag_type type, bool descending)
mpd_search_add_modified_since_constraint
bool mpd_search_add_modified_since_constraint(struct mpd_connection *connection, enum mpd_operator oper, time_t value)
mpd_search_db_songs
bool mpd_search_db_songs(struct mpd_connection *connection, bool exact)
mpd_search_add_sort_name
bool mpd_search_add_sort_name(struct mpd_connection *connection, const char *name, bool descending)
mpd_recv_pair_tag
struct mpd_pair * mpd_recv_pair_tag(struct mpd_connection *connection, enum mpd_tag_type type)
mpd_search_add_window
bool mpd_search_add_window(struct mpd_connection *connection, unsigned start, unsigned end)
mpd_search_add_uri_constraint
bool mpd_search_add_uri_constraint(struct mpd_connection *connection, enum mpd_operator oper, const char *value)
mpd_search_add_position
bool mpd_search_add_position(struct mpd_connection *connection, unsigned position, enum mpd_position_whence whence)
mpd_count_db_songs
bool mpd_count_db_songs(struct mpd_connection *connection)
mpd_search_add_tag_constraint
bool mpd_search_add_tag_constraint(struct mpd_connection *connection, enum mpd_operator oper, enum mpd_tag_type type, const char *value)
mpd_operator
mpd_operator
Definition search.h:28
MPD_OPERATOR_DEFAULT
@ MPD_OPERATOR_DEFAULT
Definition search.h:34
mpd_searchcount_db_songs
bool mpd_searchcount_db_songs(struct mpd_connection *connection)
mpd_search_add_added_since_constraint
bool mpd_search_add_added_since_constraint(struct mpd_connection *connection, enum mpd_operator oper, time_t value)
mpd_connection
mpd_pair
Definition pair.h:16
tag.h
mpd_tag_type
mpd_tag_type
Definition tag.h:25