mirror of
https://github.com/eclipse/wakaama.git
synced 2025-05-09 15:51:47 +08:00
Move declaration for 'registration' into own header
This is more C like and leads to a better modularized project.
This commit is contained in:
parent
6383ce8671
commit
ec91f25f2b
@ -65,6 +65,7 @@
|
||||
#include "bootstrap.h"
|
||||
#include "discover.h"
|
||||
#include "er-coap-13/er-coap-13.h"
|
||||
#include "registration.h"
|
||||
#include "reporting.h"
|
||||
#include "utils.h"
|
||||
|
||||
@ -460,14 +461,6 @@ bool observe_handleNotify(lwm2m_context_t * contextP, void * fromSessionH, coap_
|
||||
void observe_remove(lwm2m_observation_t * observationP);
|
||||
lwm2m_observed_t * observe_findByUri(lwm2m_context_t * contextP, lwm2m_uri_t * uriP);
|
||||
|
||||
// defined in registration.c
|
||||
uint8_t registration_handleRequest(lwm2m_context_t * contextP, lwm2m_uri_t * uriP, void * fromSessionH, coap_packet_t * message, coap_packet_t * response);
|
||||
void registration_deregister(lwm2m_context_t * contextP, lwm2m_server_t * serverP);
|
||||
void registration_freeClient(lwm2m_client_t * clientP);
|
||||
uint8_t registration_start(lwm2m_context_t * contextP, bool restartFailed);
|
||||
void registration_step(lwm2m_context_t * contextP, time_t currentTime, time_t * timeoutP);
|
||||
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);
|
||||
|
||||
|
31
core/registration.h
Normal file
31
core/registration.h
Normal file
@ -0,0 +1,31 @@
|
||||
/*******************************************************************************
|
||||
*
|
||||
* 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_REGISTRATION_H
|
||||
#define WAKAAMA_REGISTRATION_H
|
||||
#include "er-coap-13/er-coap-13.h"
|
||||
#include "internals.h"
|
||||
|
||||
uint8_t registration_handleRequest(lwm2m_context_t *contextP, lwm2m_uri_t *uriP, void *fromSessionH,
|
||||
coap_packet_t *message, coap_packet_t *response);
|
||||
void registration_deregister(lwm2m_context_t *contextP, lwm2m_server_t *serverP);
|
||||
void registration_freeClient(lwm2m_client_t *clientP);
|
||||
uint8_t registration_start(lwm2m_context_t *contextP, bool restartFailed);
|
||||
void registration_step(lwm2m_context_t *contextP, time_t currentTime, time_t *timeoutP);
|
||||
lwm2m_status_t registration_getStatus(lwm2m_context_t *contextP);
|
||||
|
||||
#endif /* WAKAAMA_REGISTRATION_H */
|
Loading…
x
Reference in New Issue
Block a user