view include/common.h @ 87:2e819b84d7c0 default tip

CI: cleanup, remove source URLs
author Paper <paper@paper.us.eu.org>
date Mon, 15 Jul 2024 01:35:03 -0400
parents 8f90d5addda9
children
line wrap: on
line source

#ifndef msvpvf_common_h
#define msvpvf_common_h

#include <stdio.h>
#include <stdint.h>

#ifndef ARRAYSIZE
#define ARRAYSIZE(x) \
	(sizeof(x)/sizeof((x)[0]))
#endif

enum types {
	TYPES_UNKNOWN = 0,
	TYPES_VF,
	TYPES_VEG
};

int set_file_information(FILE* target, uint8_t version, enum types type);
int get_file_information(FILE* input, uint8_t* version, enum types* type);

#endif /* msvpvf_common_h */