Skip to content

Commit

Permalink
Add versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Caian committed Jan 29, 2024
1 parent 1a09e42 commit 96cc19f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions include/version.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright (C) 2024 Caian Benedicto <[email protected]>
*
* This file is part of xinfc.
*
* xinfc is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* xinfc is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with xinfc. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#if !defined(XINFC_VERSION)
#define XINFC_VERSION "(unversioned)"
#endif
3 changes: 3 additions & 0 deletions src/xinfc-wsc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/

#include "i2c_nfc_device.hpp"
#include "version.hpp"
#include "wifi.hpp"

#include <unistd.h>
Expand All @@ -39,6 +40,8 @@ int main(int argc, const char* argv[])
{
using namespace xinfc;

std::cerr << "xinfc version " << XINFC_VERSION << std::endl;

if (argc != 6)
{
print_usage();
Expand Down

0 comments on commit 96cc19f

Please sign in to comment.