From 781f955aa2fb813dd87986cbcc22c1676a2dd9a9 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Thu, 1 Dec 2022 01:54:51 +0000 Subject: 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 --- firmware/export/structec.h | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 firmware/export/structec.h (limited to 'firmware/export/structec.h') 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 @@ -/*************************************************************************** - * __________ __ ___. - * Open \______ \ ____ ____ | | _\_ |__ _______ ___ - * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / - * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < - * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ - * \/ \/ \/ \/ \/ - * $Id$ - * - * Copyright (C) 2007 by Miika Pekkarinen - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY - * KIND, either express or implied. - * - ****************************************************************************/ - -#ifndef _STRUCTEC_H -#define _STRUCTEC_H - -#include -#include - -void structec_convert(void *structure, const char *ecinst, - long count, bool enable); -ssize_t ecread(int fd, void *buf, size_t scount, const char *ecinst, bool ec); -ssize_t ecwrite(int fd, const void *buf, size_t scount, const char *ecinst, bool ec); -#endif - -- cgit v1.2.3