diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-12-01 01:54:51 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2023-10-01 12:10:41 +0100 |
commit | 781f955aa2fb813dd87986cbcc22c1676a2dd9a9 (patch) | |
tree | c0c1e08ad7711d18849cad1b27fcef5ad4931d5b /firmware/export | |
parent | d3b588678f9d330d1273143855f9705c4e980030 (diff) | |
download | rockbox-781f955aa2fb813dd87986cbcc22c1676a2dd9a9.tar.gz rockbox-781f955aa2fb813dd87986cbcc22c1676a2dd9a9.zip |
Remove structec API
In my opinion this API is just not very useful - design is kind
of questionable. There are hidden limits on the struct size and
bugs on 64-bit platforms due to assuming sizeof(long) == 4.
At the end of the day, the only major user was the tagcache and
it's actually less code size to do endian swapping manually.
Change-Id: I451c7f1a10cf3e28744c32c0f1f39a710d5cc100
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/structec.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/firmware/export/structec.h b/firmware/export/structec.h deleted file mode 100644 index b3e7d69efa..0000000000 --- a/firmware/export/structec.h +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2007 by Miika Pekkarinen | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | #ifndef _STRUCTEC_H | ||
23 | #define _STRUCTEC_H | ||
24 | |||
25 | #include <sys/types.h> | ||
26 | #include <stdbool.h> | ||
27 | |||
28 | void structec_convert(void *structure, const char *ecinst, | ||
29 | long count, bool enable); | ||
30 | ssize_t ecread(int fd, void *buf, size_t scount, const char *ecinst, bool ec); | ||
31 | ssize_t ecwrite(int fd, const void *buf, size_t scount, const char *ecinst, bool ec); | ||
32 | #endif | ||
33 | |||