MPD 0.17~git
src/db_print.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2003-2011 The Music Player Daemon Project
00003  * http://www.musicpd.org
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License along
00016  * with this program; if not, write to the Free Software Foundation, Inc.,
00017  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00018  */
00019 
00020 #ifndef MPD_DB_PRINT_H
00021 #define MPD_DB_PRINT_H
00022 
00023 #include "gcc.h"
00024 
00025 #include <glib.h>
00026 #include <stdbool.h>
00027 
00028 struct client;
00029 struct locate_item_list;
00030 struct db_selection;
00031 struct db_visitor;
00032 
00033 gcc_nonnull(1,2)
00034 bool
00035 db_selection_print(struct client *client, const struct db_selection *selection,
00036                    bool full, GError **error_r);
00037 
00038 gcc_nonnull(1,2)
00039 bool
00040 printAllIn(struct client *client, const char *uri_utf8, GError **error_r);
00041 
00042 gcc_nonnull(1,2)
00043 bool
00044 printInfoForAllIn(struct client *client, const char *uri_utf8,
00045                   GError **error_r);
00046 
00047 gcc_nonnull(1,2,3)
00048 bool
00049 searchForSongsIn(struct client *client, const char *name,
00050                  const struct locate_item_list *criteria,
00051                  GError **error_r);
00052 
00053 gcc_nonnull(1,2,3)
00054 bool
00055 findSongsIn(struct client *client, const char *name,
00056             const struct locate_item_list *criteria,
00057             GError **error_r);
00058 
00059 gcc_nonnull(1,2,3)
00060 bool
00061 searchStatsForSongsIn(struct client *client, const char *name,
00062                       const struct locate_item_list *criteria,
00063                       GError **error_r);
00064 
00065 gcc_nonnull(1,3)
00066 bool
00067 listAllUniqueTags(struct client *client, int type,
00068                   const struct locate_item_list *criteria,
00069                   GError **error_r);
00070 
00071 #endif