mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-22 07:15:14 +03:00
Defined two functions that return the library name and version string.
This commit is contained in:
1 parent
ef41ce5d02
commit
122200d3fd
2 files changed
+16
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
/* debug.c -- debug utilities
|
||||
*
|
||||
* Copyright (C) 2010--2012 Olaf Bergmann <bergmann@tzi.org>
|
||||
* Copyright (C) 2010--2012,2014 Olaf Bergmann <bergmann@tzi.org>
|
||||
*
|
||||
* This file is part of the CoAP library libcoap. Please see
|
||||
* README for terms of use.
|
||||
@@ -37,6 +37,14 @@
|
||||
|
||||
static coap_log_t maxlog = LOG_WARNING; /* default maximum log level */
|
||||
|
||||
const char *coap_package_name() {
|
||||
return PACKAGE_NAME;
|
||||
}
|
||||
|
||||
const char *coap_package_version() {
|
||||
return PACKAGE_STRING;
|
||||
}
|
||||
|
||||
coap_log_t
|
||||
coap_get_log_level() {
|
||||
return maxlog;
|
||||
|
||||
Reference in new issue
Block a user