mirror of
https://github.com/eclipse/wakaama.git
synced 2025-05-08 23:31:37 +08:00
Move declaration for 'bootstrap' into own header
This is more C like and leads to a better modularized project.
This commit is contained in:
parent
7a4adf858a
commit
6383ce8671
33
core/bootstrap.h
Normal file
33
core/bootstrap.h
Normal file
@ -0,0 +1,33 @@
|
||||
/*******************************************************************************
|
||||
*
|
||||
* 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_BOOTSTRAP_H
|
||||
#define WAKAAMA_BOOTSTRAP_H
|
||||
#include "er-coap-13/er-coap-13.h"
|
||||
#include "internals.h"
|
||||
|
||||
void bootstrap_step(lwm2m_context_t *contextP, time_t currentTime, time_t *timeoutP);
|
||||
uint8_t bootstrap_handleCommand(lwm2m_context_t *contextP, lwm2m_uri_t *uriP, lwm2m_server_t *serverP,
|
||||
coap_packet_t *message, coap_packet_t *response);
|
||||
uint8_t bootstrap_handleDeleteAll(lwm2m_context_t *context, void *fromSessionH);
|
||||
uint8_t bootstrap_handleFinish(lwm2m_context_t *context, void *fromSessionH);
|
||||
uint8_t bootstrap_handleRequest(lwm2m_context_t *contextP, lwm2m_uri_t *uriP, void *fromSessionH,
|
||||
coap_packet_t *message, coap_packet_t *response);
|
||||
void bootstrap_start(lwm2m_context_t *contextP);
|
||||
lwm2m_status_t bootstrap_getStatus(lwm2m_context_t *contextP);
|
||||
|
||||
#endif /* WAKAAMA_BOOTSTRAP_H */
|
@ -62,6 +62,7 @@
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "bootstrap.h"
|
||||
#include "discover.h"
|
||||
#include "er-coap-13/er-coap-13.h"
|
||||
#include "reporting.h"
|
||||
@ -470,15 +471,6 @@ lwm2m_status_t registration_getStatus(lwm2m_context_t * contextP);
|
||||
// defined in packet.c
|
||||
uint8_t message_send(lwm2m_context_t * contextP, coap_packet_t * message, void * sessionH);
|
||||
|
||||
// defined in bootstrap.c
|
||||
void bootstrap_step(lwm2m_context_t * contextP, time_t currentTime, time_t* timeoutP);
|
||||
uint8_t bootstrap_handleCommand(lwm2m_context_t * contextP, lwm2m_uri_t * uriP, lwm2m_server_t * serverP, coap_packet_t * message, coap_packet_t * response);
|
||||
uint8_t bootstrap_handleDeleteAll(lwm2m_context_t * context, void * fromSessionH);
|
||||
uint8_t bootstrap_handleFinish(lwm2m_context_t * context, void * fromSessionH);
|
||||
uint8_t bootstrap_handleRequest(lwm2m_context_t * contextP, lwm2m_uri_t * uriP, void * fromSessionH, coap_packet_t * message, coap_packet_t * response);
|
||||
void bootstrap_start(lwm2m_context_t * contextP);
|
||||
lwm2m_status_t bootstrap_getStatus(lwm2m_context_t * contextP);
|
||||
|
||||
#ifdef LWM2M_SUPPORT_TLV
|
||||
// defined in tlv.c
|
||||
int tlv_parse(const uint8_t * buffer, size_t bufferLen, lwm2m_data_t ** dataP);
|
||||
|
Loading…
x
Reference in New Issue
Block a user