-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add high level EMV library interface and refactor generated headers
* Generate emv_utils_config.h for build configuration to contain project version string, platform checks, and paths required by iso-codes and mcc-codes. This replaces isocodes_config.h and mcc_config.h. * Add emv.h, emv.c, implement emv_lib_version_string(), and update emv-decode and emv-tool accordingly.
- Loading branch information
Showing
11 changed files
with
95 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* @file emv_utils_config.h | ||
* @brief Definitions related to emv-utils build configuration | ||
* | ||
* Copyright (c) 2023 Leon Lynch | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* This library 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 | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this library. If not, see | ||
* <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef EMV_UTILS_CONFIG_H | ||
#define EMV_UTILS_CONFIG_H | ||
|
||
#cmakedefine EMV_UTILS_VERSION_STRING "@EMV_UTILS_VERSION_STRING@" | ||
#cmakedefine HAVE_TIME_H | ||
#cmakedefine HAVE_CLOCK_GETTIME | ||
|
||
// For iso-codes | ||
#define ISOCODES_JSON_PATH "@IsoCodes_JSON_PATH@" | ||
|
||
// For mcc-codes | ||
#cmakedefine MCC_JSON_BUILD_PATH "@MCC_JSON_BUILD_PATH@" | ||
#cmakedefine MCC_JSON_INSTALL_PATH "@MCC_JSON_INSTALL_PATH@" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters