mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-22 15:30:09 +00:00
41bdcd4aed
* Update logging * Remove duplicate code * Update unit tests * Clean up includes * Merge ProtobufSerializer into protobuf_util namespace * Precompile regex * Add const * Add Split() convenience method, update log level/ID parsing * Move log.h to legacy folder * Elimininate gotos * Fixes for gcc 13 * Update compiler flags * Update default folder handling * Use references instead of pointers * Move code for better encapsulation * Move code * Remove unused method argument * Move device logger * Remove redundant to_string * Rename for consistency * Update handling of protobuf pointers * Simplify protobuf usage * Memory handling update * Add hasher
38 lines
890 B
C++
38 lines
890 B
C++
//---------------------------------------------------------------------------
|
|
//
|
|
// SCSI Target Emulator PiSCSI
|
|
// for Raspberry Pi
|
|
//
|
|
// Copyright (C) 2020 akuker
|
|
//
|
|
//---------------------------------------------------------------------------
|
|
|
|
#include "piscsi_version.h"
|
|
#include <sstream>
|
|
#include <iomanip>
|
|
|
|
// The following should be updated for each release
|
|
const int piscsi_major_version = 23; // Last two digits of year
|
|
const int piscsi_minor_version = 10; // Month
|
|
const int piscsi_patch_version = -1; // Patch number - increment for each update
|
|
|
|
using namespace std;
|
|
|
|
string piscsi_get_version_string()
|
|
{
|
|
stringstream s;
|
|
|
|
s << setw(2) << setfill('0') << piscsi_major_version << '.' << setw(2) << piscsi_minor_version;
|
|
|
|
if (piscsi_patch_version < 0) {
|
|
s << " --DEVELOPMENT BUILD--";
|
|
}
|
|
else {
|
|
s << '.' << setw(2) << piscsi_patch_version;
|
|
}
|
|
|
|
return s.str();
|
|
}
|
|
|
|
|