1 /* MiniDLNA media server
2 * Copyright (C) 2014 NETGEAR
4 * This file is part of MiniDLNA.
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.
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.
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/>.
19 struct magic_container_s
{
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
;
33 extern struct magic_container_s magic_containers
[];
35 struct magic_container_s
*in_magic_container(const char *id
, int flags
, const char **real_id
);
36 struct magic_container_s
*check_magic_container(const char *id
, int flags
);