57 lines
1.2 KiB
C
57 lines
1.2 KiB
C
/*
|
|
************************************************************************
|
|
**
|
|
** Copyright (c) 2009..2010 by
|
|
** Core|Vision B.V.
|
|
** Cereslaan 10b
|
|
** 5384 VT Heesch
|
|
** The Netherlands
|
|
**
|
|
** All Rights Reserved
|
|
**
|
|
************************************************************************
|
|
*/
|
|
/*
|
|
************************************************************************
|
|
**
|
|
** Project name: Dual Inventive: Utility Library
|
|
** Filename: version.h
|
|
** Author: Jack Weeland
|
|
** Date: July 3, 2009
|
|
** File version: 1.00 of July 3, 2009
|
|
**
|
|
************************************************************************
|
|
*/
|
|
/*
|
|
************************************************************************
|
|
**
|
|
** Function to split up a version string
|
|
**
|
|
************************************************************************
|
|
*/
|
|
|
|
#ifndef __VERSION_H
|
|
#define __VERSION_H
|
|
|
|
/*
|
|
** Definitions
|
|
*/
|
|
|
|
typedef struct VERSION_INFO
|
|
{
|
|
unsigned int major;
|
|
unsigned int minor;
|
|
unsigned int build;
|
|
unsigned int datecode; // machine readable, e.g. 0x20090101
|
|
char devtype[8];
|
|
} version_t;
|
|
|
|
/*
|
|
** Exported functions
|
|
*/
|
|
|
|
// get firmware version
|
|
int version_init(version_t *version, const char *versionstr);
|
|
|
|
#endif /* __VERSION_H */
|