add global proxy / cache settings to httpget class. This removes the need of passing...
[Rockbox.git] / firmware / export / general.h
blobf4ea9e206a43ec59c9533aa452963b9bb4631224
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006 by Michael Sevakis
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 #ifndef GENERAL_H
21 #define GENERAL_H
23 #include <stdbool.h>
24 #include <stddef.h>
26 /* round a signed/unsigned 32bit value to the closest of a list of values */
27 /* returns the index of the closest value */
28 int round_value_to_list32(unsigned long value,
29 const unsigned long list[],
30 int count,
31 bool signd);
33 int make_list_from_caps32(unsigned long src_mask,
34 const unsigned long *src_list,
35 unsigned long caps_mask,
36 unsigned long *caps_list);
38 size_t align_buffer(void **start, size_t size, size_t align);
40 #endif /* GENERAL_H */