1/* MiniDLNA media server
2 * Copyright (C) 2014  NETGEAR
3 *
4 * This file is part of MiniDLNA.
5 *
6 * MiniDLNA is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * MiniDLNA is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with MiniDLNA. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19struct magic_container_s {
20	const char *name;
21	const char *objectid_match;
22	const char **objectid;
23	const char *objectid_sql;
24	const char *parentid_sql;
25	const char *refid_sql;
26	const char *child_count;
27	const char *where;
28	const char *orderby;
29	int max_count;
30	int required_flags;
31};
32
33extern struct magic_container_s magic_containers[];
34
35struct magic_container_s *in_magic_container(const char *id, int flags, const char **real_id);
36struct magic_container_s *check_magic_container(const char *id, int flags);
37