aqhome: added lib for hexfiles and flash records.

This commit is contained in:
Martin Preuss
2023-04-18 19:41:56 +02:00
parent 93e89e801e
commit 4e409851f6
12 changed files with 1136 additions and 1 deletions

41
aqhome/hexfile/hexfile.h Normal file
View File

@@ -0,0 +1,41 @@
/****************************************************************************
* This file is part of the project AqHome.
* AqHome (c) by 2023 Martin Preuss, all rights reserved.
*
* The license for this file can be found in the file COPYING which you
* should have received along with this file.
****************************************************************************/
#ifndef AQH_HEXFILE_H
#define AQH_HEXFILE_H
#include <aqhome/api.h>
#include <aqhome/hexfile/hexfilerecord.h>
#include <gwenhywfar/list.h>
#include <gwenhywfar/buffer.h>
typedef struct AQH_HEXFILE AQH_HEXFILE;
AQHOME_API AQH_HEXFILE *AQH_Hexfile_new();
AQHOME_API AQH_HEXFILE *AQH_Hexfile_fromString(const char *s);
AQHOME_API AQH_HEXFILE *AQH_Hexfile_fromFile(const char *filename);
AQHOME_API void AQH_Hexfile_toBuffer(const AQH_HEXFILE *h, GWEN_BUFFER *buffer);
AQHOME_API void AQH_Hexfile_free(AQH_HEXFILE *h);
AQHOME_API AQH_HEXFILERECORD_LIST *AQH_Hexfile_GetRecordList(const AQH_HEXFILE *h);
#endif