mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-25 08:31:04 +03:00
versioning: Make current git describe available
Add new function coap_package_build() which returns "git describe --tags" if available at library build time, else standard package version. The value of "git describe --tags" is created at run time and passed in as a compiler -D definition. Update copyright end dates for updated files.
This commit is contained in:
1 parent
2a329e1c76
commit
64e5641017
11 files changed
+82
-34
No files matched your search
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* coap_debug.h -- debug utilities
|
||||
*
|
||||
* Copyright (C) 2010-2011,2014 Olaf Bergmann <bergmann@tzi.org>
|
||||
* Copyright (C) 2010-2011,2014-2022 Olaf Bergmann <bergmann@tzi.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*
|
||||
@@ -129,6 +129,13 @@ const char *coap_package_name(void);
|
||||
*/
|
||||
const char *coap_package_version(void);
|
||||
|
||||
/**
|
||||
* Get the library package build.
|
||||
*
|
||||
* @return Zero-terminated string with the library build.
|
||||
*/
|
||||
const char *coap_package_build(void);
|
||||
|
||||
/**
|
||||
* Writes the given text to @c COAP_ERR_FD (for @p level <= @c LOG_CRIT) or @c
|
||||
* COAP_DEBUG_FD (for @p level >= @c LOG_ERR). The text is output only when
|
||||
|
||||
Reference in new issue
Block a user