dnsmasq: stay close as possible to master branch
[tomato.git] / release / src-rt-6.x.4708 / router / minidlna / tivo_utils.h
blobd8756cf92853b4fce3998b1007999244152661fb
1 /* TiVo helper functions
3 * Project : minidlna
4 * Website : http://sourceforge.net/projects/minidlna/
5 * Author : Justin Maggard
7 * MiniDLNA media server
8 * Copyright (C) 2009 Justin Maggard
10 * This file is part of MiniDLNA.
12 * MiniDLNA is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License version 2 as
14 * published by the Free Software Foundation.
16 * MiniDLNA is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with MiniDLNA. If not, see <http://www.gnu.org/licenses/>.
24 #include "config.h"
26 #ifdef TIVO_SUPPORT
27 #include <sqlite3.h>
29 struct sqlite3PrngType {
30 unsigned char isInit; /* True if initialized */
31 unsigned char i, j; /* State variables */
32 unsigned char s[256]; /* State variables */
33 } sqlite3Prng;
35 char *
36 decodeString(char *string, int inplace);
38 void
39 TiVoRandomSeedFunc(sqlite3_context *context, int argc, sqlite3_value **argv);
41 int
42 is_tivo_file(const char *path);
44 #else
45 #define decodeString(X, Y) ({})
46 #endif