Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
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,
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
void scanner_init(void)
Definition: scanner.c:154
const char filename
Definition: misc-api.h:85
PluginHandle * scan_request_get_decoder(ScanRequest *request)
Definition: scanner.c:127
PluginHandle * decoder
Definition: scanner.c:34
char * scan_request_get_image_file(ScanRequest *request)
Definition: scanner.c:147
void scanner_cleanup(void)
Definition: scanner.c:160
Tuple * scan_request_get_tuple(ScanRequest *request)
Definition: scanner.c:132
void scan_request_get_image_data(ScanRequest *request, void **data, int64_t *len)
Definition: scanner.c:139
ScanRequest * scan_request(const char *filename, int flags, PluginHandle *decoder, ScanCallback callback)
Definition: scanner.c:51
ScanCallback callback
Definition: scanner.c:35
const char * scan_request_get_filename(ScanRequest *request)
Definition: scanner.c:122
Basic Tuple handling API.
void(* ScanCallback)(ScanRequest *request)
Definition: scanner.h:34
int flags
Definition: scanner.c:33