full version of beta including resources and binary

This commit is contained in:
2026-04-12 18:21:05 +02:00
parent ce1d6e52ab
commit 429b28ef67
24 changed files with 4491 additions and 2 deletions

30
include/mightywatt_log.h Normal file
View File

@ -0,0 +1,30 @@
#ifndef MIGHTYWATT_LOG_H
#define MIGHTYWATT_LOG_H
#include "mightywatt.h"
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct mw_csv_logger mw_csv_logger;
typedef enum {
MW_CSV_UNITS_ENGINEERING = 0,
MW_CSV_UNITS_RAW = 1
} mw_csv_units_mode;
int mw_csv_logger_open(mw_csv_logger **out_logger, const char *path, mw_csv_units_mode units_mode);
void mw_csv_logger_close(mw_csv_logger *logger);
int mw_csv_logger_write(mw_csv_logger *logger,
const char *context,
long step_index,
const mw_report *report);
#ifdef __cplusplus
}
#endif
#endif