[20bb1d]: scanner.h Maximize Restore History

Download this file

scanner.h    46 lines (34 with data), 938 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* Media file scanner
*
* Project : minidlna
* Website : http://sourceforge.net/projects/minidlna/
* Author : Justin Maggard
* Copyright (c) 2008-2009 Justin Maggard
* This software is subject to the conditions detailed in the
* LICENCE file provided in this distribution.
* */
#ifndef __SCANNER_H__
#define __SCANNER_H__
#define BROWSEDIR_ID "64"
#define MUSIC_DIR_ID "1$14"
#define MUSIC_PLIST_ID "1$F"
#define VIDEO_DIR_ID "2$15"
#define IMAGE_DIR_ID "3$16"
extern int valid_cache;
int
is_video(const char * file);
int
is_audio(const char * file);
int
is_image(const char * file);
sqlite_int64
get_next_available_id(const char * table, const char * parentID);
int
insert_directory(const char * name, const char * path, const char * base, const char * parentID, int objectID);
int
insert_file(char * name, const char * path, const char * parentID, int object);
int
CreateDatabase(void);
void
start_scanner();
#endif