rename global version_information and its struct type

This commit is contained in:
Philippe Teuwen committed 2021-08-21 20:11:22 +02:00
1 parent 1d11e6d153
commit 8280fc3c07
9 files changed
+11 -11

No files matched your search

+2 -2
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) {
+1 -1
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 ...
+1 -1
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 */