Replace the existing Apache 2.0 boilerplate header with an SPDX tag throughout the zephyr code tree. This patch was generated via a script run over the master branch. Also updated doc/porting/application.rst that had a dependency on line numbers in a literal include. Manually updated subsys/logging/sys_log.c that had a malformed header in the original file. Also cleanup several cases that already had a SPDX tag and we either got a duplicate or missed updating. Jira: ZEP-1457 Change-Id: I6131a1d4ee0e58f5b938300c2d2fc77d2e69572c Signed-off-by: David B. Kinder <david.b.kinder@intel.com> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
43 lines
1.0 KiB
C
43 lines
1.0 KiB
C
/*
|
|
* Copyright (c) 2016 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
*
|
|
* @brief CoAP implementation for Zephyr.
|
|
*/
|
|
|
|
#ifndef __LINK_FORMAT_H__
|
|
#define __LINK_FORMAT_H__
|
|
|
|
#define _ZOAP_WELL_KNOWN_CORE_PATH \
|
|
((const char * const[]) { ".well-known", "core", NULL })
|
|
|
|
int _zoap_well_known_core_get(struct zoap_resource *resource,
|
|
struct zoap_packet *request,
|
|
const struct sockaddr *from);
|
|
|
|
/**
|
|
* This resource should be added before all other resources that should be
|
|
* included in the responses of the .well-known/core resource.
|
|
*/
|
|
#define ZOAP_WELL_KNOWN_CORE_RESOURCE \
|
|
{ .get = _zoap_well_known_core_get, \
|
|
.path = _ZOAP_WELL_KNOWN_CORE_PATH, \
|
|
}
|
|
|
|
/**
|
|
* In case you want to add attributes to the resources included in the
|
|
* 'well-known/core' "virtual" resource, the 'user_data' field should point
|
|
* to a valid zoap_core_metadata structure.
|
|
*/
|
|
struct zoap_core_metadata {
|
|
const char * const *attributes;
|
|
void *user_data;
|
|
};
|
|
|
|
#endif /* __LINK_FORMAT_H__ */
|