2024-02-10 00:33:33 +01:00
|
|
|
#ifndef _MODFETCH_MOD_H
|
|
|
|
#define _MODFETCH_MOD_H
|
|
|
|
|
2024-02-11 23:23:50 +01:00
|
|
|
#include <semver.h>
|
|
|
|
|
2024-02-09 12:05:06 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2024-02-11 17:50:10 +01:00
|
|
|
static const semver API_VERSION = {
|
|
|
|
.major = 0,
|
2024-02-11 19:37:41 +01:00
|
|
|
.minor = 2,
|
2024-02-11 17:50:10 +01:00
|
|
|
.patch = 0,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const uint8_t MFERR_APIVER = 1;
|
|
|
|
|
2024-02-10 14:11:26 +01:00
|
|
|
semver version(void);
|
2024-02-10 14:51:50 +01:00
|
|
|
const char *name(void);
|
2024-02-09 12:05:06 +01:00
|
|
|
|
2024-02-11 19:37:41 +01:00
|
|
|
uint8_t init(semver api_ver, char **config);
|
2024-02-10 14:51:50 +01:00
|
|
|
const char *get(void);
|
2024-02-10 00:33:33 +01:00
|
|
|
|
|
|
|
#endif // _MODFETCH_MOD_H
|