rename global version_information and its struct type

This commit is contained in:
Philippe Teuwen 2021-08-21 20:11:14 +02:00
commit 8280fc3c07
9 changed files with 11 additions and 11 deletions

View file

@ -11,12 +11,12 @@
#include <string.h>
/* Similar to FpgaGatherVersion this formats stored version information
* into a string representation. It takes a pointer to the struct version_information,
* into a string representation. It takes a pointer to the struct version_information_t,
* verifies the magic properties, then stores a formatted string, prefixed by
* prefix in dst.
*/
void FormatVersionInformation(char *dst, int len, const char *prefix, void *version_info) {
struct version_information *v = (struct version_information *)version_info;
struct version_information_t *v = (struct version_information_t *)version_info;
dst[0] = 0;
strncat(dst, prefix, len - 1);
if (v->magic != VERSION_INFORMATION_MAGIC) {

View file

@ -41,7 +41,7 @@
# define NTIME(n) for (int _index = 0; _index < n; _index++)
#endif
extern struct version_information version_information;
extern struct version_information_t g_version_information;
void FormatVersionInformation(char *dst, int len, const char *prefix, void *version_info);
uint32_t reflect(uint32_t v, int b); // used in crc.c ...

View file

@ -6,7 +6,7 @@
#define SECTVERSINFO __attribute__((section(".version_information")))
#endif
const struct version_information SECTVERSINFO version_information = {
const struct version_information_t SECTVERSINFO g_version_information = {
VERSION_INFORMATION_MAGIC,
1, /* version 1 */
0, /* version information not present */