search.h
Go to the documentation of this file.
/* libmpdclient
(c) 2003-2015 The Music Player Daemon Project
This project's homepage is: http://www.musicpd.org
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of the Music Player Daemon nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MPD_DB_H
#define MPD_DB_H
#include <mpd/connection.h>
#include <mpd/tag.h>
#include <mpd/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_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_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_window(struct mpd_connection *connection,
unsigned start, unsigned end);
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
mpd_operator
mpd_operator
Definition: search.h:56
tag.h
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)
connection.h
MPD client library.
mpd_search_add_uri_constraint
bool mpd_search_add_uri_constraint(struct mpd_connection *connection, enum mpd_operator oper, const char *value)
mpd_search_commit
bool mpd_search_commit(struct mpd_connection *connection)
mpd_tag_type
mpd_tag_type
Definition: tag.h:36
mpd_count_db_songs
bool mpd_count_db_songs(struct mpd_connection *connection)
mpd_search_db_songs
bool mpd_search_db_songs(struct mpd_connection *connection, bool exact)
compiler.h
Compiler specific definitions.
mpd_search_queue_songs
bool mpd_search_queue_songs(struct mpd_connection *connection, bool exact)
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_cancel
void mpd_search_cancel(struct mpd_connection *connection)
mpd_search_add_window
bool mpd_search_add_window(struct mpd_connection *connection, unsigned start, unsigned end)
mpd_search_add_db_songs
bool mpd_search_add_db_songs(struct mpd_connection *connection, bool exact)
mpd_search_add_base_constraint
bool mpd_search_add_base_constraint(struct mpd_connection *connection, enum mpd_operator oper, const char *value)
mpd_recv_pair_tag
mpd_malloc struct mpd_pair * mpd_recv_pair_tag(struct mpd_connection *connection, enum mpd_tag_type type)
mpd_connection
Definition: connection.h:48
MPD_OPERATOR_DEFAULT
Definition: search.h:62
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_db_tags
bool mpd_search_db_tags(struct mpd_connection *connection, enum mpd_tag_type type)
mpd_pair
Definition: pair.h:41