mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-06 15:30:18 +01:00
Add printable libhackrf and hackrf tools version strings
This commit is contained in:
@@ -365,6 +365,22 @@ int ADDCALL hackrf_exit(void)
|
||||
return HACKRF_SUCCESS;
|
||||
}
|
||||
|
||||
#ifndef LIBRARY_VERSION
|
||||
#define LIBRARY_VERSION "unknown"
|
||||
#endif
|
||||
const char* ADDCALL hackrf_library_version()
|
||||
{
|
||||
return LIBRARY_VERSION;
|
||||
}
|
||||
|
||||
#ifndef LIBRARY_RELEASE
|
||||
#define LIBRARY_RELEASE "unknown"
|
||||
#endif
|
||||
const char* ADDCALL hackrf_library_release()
|
||||
{
|
||||
return LIBRARY_RELEASE;
|
||||
}
|
||||
|
||||
hackrf_device_list_t* ADDCALL hackrf_device_list()
|
||||
{
|
||||
ssize_t i;
|
||||
|
||||
Reference in New Issue
Block a user