mirror of
https://github.com/eclipse/wakaama.git
synced 2025-05-08 23:31:37 +08:00
Move declaration for 'discover' into own header
This is more C like and leads to a better modularized project.
This commit is contained in:
parent
b0061b92e0
commit
7a4adf858a
24
core/discover.h
Normal file
24
core/discover.h
Normal file
@ -0,0 +1,24 @@
|
||||
/*******************************************************************************
|
||||
*
|
||||
* Copyright (c) 2024 GARDENA GmbH
|
||||
*
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v2.0
|
||||
* and Eclipse Distribution License v1.0 which accompany this distribution.
|
||||
*
|
||||
* The Eclipse Public License is available at
|
||||
* http://www.eclipse.org/legal/epl-v20.html
|
||||
* The Eclipse Distribution License is available at
|
||||
* http://www.eclipse.org/org/documents/edl-v10.php.
|
||||
*
|
||||
* Contributors:
|
||||
* Lukas Woodtli, GARDENA GmbH - Please refer to git log
|
||||
*
|
||||
*******************************************************************************/
|
||||
#ifndef WAKAAMA_DISCOVER_H
|
||||
#define WAKAAMA_DISCOVER_H
|
||||
|
||||
int discover_serialize(lwm2m_context_t *contextP, lwm2m_uri_t *uriP, lwm2m_server_t *serverP, int size,
|
||||
lwm2m_data_t *dataP, uint8_t **bufferP);
|
||||
|
||||
#endif /* WAKAAMA_DISCOVER_H */
|
@ -62,6 +62,7 @@
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "discover.h"
|
||||
#include "er-coap-13/er-coap-13.h"
|
||||
#include "reporting.h"
|
||||
#include "utils.h"
|
||||
@ -541,9 +542,6 @@ uri_depth_t json_decreaseLevel(uri_depth_t level);
|
||||
int json_findAndCheckData(const lwm2m_uri_t * uriP, uri_depth_t baseLevel, size_t size, const lwm2m_data_t * tlvP, lwm2m_data_t ** targetP, uri_depth_t *targetLevelP);
|
||||
#endif
|
||||
|
||||
// defined in discover.c
|
||||
int discover_serialize(lwm2m_context_t * contextP, lwm2m_uri_t * uriP, lwm2m_server_t * serverP, int size, lwm2m_data_t * dataP, uint8_t ** bufferP);
|
||||
|
||||
// defined in block.c
|
||||
#ifdef LWM2M_RAW_BLOCK1_REQUESTS
|
||||
uint8_t coap_block1_handler(lwm2m_block_data_t **blockData, const char *uri, uint16_t mid, const uint8_t *buffer,
|
||||
|
Loading…
x
Reference in New Issue
Block a user