Audacious
$Id:Doxyfile42802007-03-2104:39:00Znenolod$
Main Page
Related Pages
Classes
Files
File List
File Members
src
audacious
scanner.h
Go to the documentation of this file.
1
/*
2
* scanner.h
3
* Copyright 2012 John Lindgren
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions are met:
7
*
8
* 1. Redistributions of source code must retain the above copyright notice,
9
* this list of conditions, and the following disclaimer.
10
*
11
* 2. Redistributions in binary form must reproduce the above copyright notice,
12
* this list of conditions, and the following disclaimer in the documentation
13
* provided with the distribution.
14
*
15
* This software is provided "as is" and without any warranty, express or
16
* implied. In no event shall the authors be liable for any damages arising from
17
* the use of this software.
18
*/
19
20
#ifndef AUDACIOUS_SCANNER_H
21
#define AUDACIOUS_SCANNER_H
22
23
#include <
audacious/types.h
>
24
#include <
libaudcore/tuple.h
>
25
26
#define SCAN_TUPLE (1 << 0)
27
#define SCAN_IMAGE (1 << 1)
28
29
#define SCAN_THREADS 2
30
31
struct
_ScanRequest
;
32
typedef
struct
_ScanRequest
ScanRequest;
33
34
typedef
void (*
ScanCallback
) (ScanRequest * request);
35
36
ScanRequest *
scan_request
(
const
char
*
filename
,
int
flags
,
37
PluginHandle
*
decoder
,
ScanCallback
callback
);
38
39
const
char
*
scan_request_get_filename
(ScanRequest * request);
40
PluginHandle
*
scan_request_get_decoder
(ScanRequest * request);
41
Tuple *
scan_request_get_tuple
(ScanRequest * request);
42
void
scan_request_get_image_data
(ScanRequest * request,
void
* * data, int64_t * len);
43
char
*
scan_request_get_image_file
(ScanRequest * request);
44
45
void
scanner_init
(
void
);
46
void
scanner_cleanup
(
void
);
47
48
#endif
Generated by
1.8.1.1