Skip to content

Commit 07e26bf

Browse files
author
Arto Kinnunen
authored
Use Mbed OS coding style (ARMmbed#111)
1 parent bc331ca commit 07e26bf

24 files changed

+929
-702
lines changed

coap-service/coap_service_api.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ extern "C" {
4040
#define COAP_SERVICE_ACCESS_DELETE_ALLOWED 0x08
4141

4242
// Bits for service options
43-
#define COAP_SERVICE_OPTIONS_NONE 0x00
43+
#define COAP_SERVICE_OPTIONS_NONE 0x00
4444
#define COAP_SERVICE_OPTIONS_VIRTUAL_SOCKET 0x01
45-
#define COAP_SERVICE_OPTIONS_SECURE 0x02
45+
#define COAP_SERVICE_OPTIONS_SECURE 0x02
4646
#define COAP_SERVICE_OPTIONS_EPHEMERAL_PORT 0x04
4747
/** Coap interface selected as socket interface */
4848
#define COAP_SERVICE_OPTIONS_SELECT_SOCKET_IF 0x08
@@ -52,7 +52,7 @@ extern "C" {
5252
#define COAP_SERVICE_OPTIONS_SECURE_BYPASS 0x80
5353

5454
// Bits for request options
55-
#define COAP_REQUEST_OPTIONS_NONE 0x00
55+
#define COAP_REQUEST_OPTIONS_NONE 0x00
5656
#define COAP_REQUEST_OPTIONS_ADDRESS_DEFAULT 0x00//!< default is not setting either short or long.
5757
#define COAP_REQUEST_OPTIONS_ADDRESS_LONG 0x01
5858
#define COAP_REQUEST_OPTIONS_ADDRESS_SHORT 0x02
@@ -105,7 +105,7 @@ typedef int coap_service_request_recv_cb(int8_t service_id, uint8_t source_addre
105105
*
106106
* \return 0 for success / -1 for failure
107107
*/
108-
typedef int coap_service_security_start_cb(int8_t service_id, uint8_t address[static 16], uint16_t port, uint8_t* pw, uint8_t *pw_len);
108+
typedef int coap_service_security_start_cb(int8_t service_id, uint8_t address[static 16], uint16_t port, uint8_t *pw, uint8_t *pw_len);
109109

110110
/**
111111
* \brief CoAP service security done callback
@@ -142,7 +142,7 @@ extern int8_t coap_service_initialize(int8_t interface_id, uint16_t listen_port,
142142
*
143143
* \param service_id Id number of the current service.
144144
*/
145-
extern void coap_service_delete( int8_t service_id );
145+
extern void coap_service_delete(int8_t service_id);
146146

147147
/**
148148
* \brief Close secure connection
@@ -243,7 +243,7 @@ extern int8_t coap_service_unregister_uri(int8_t service_id, const char *uri);
243243
* \return msg_id Id number of the current message.
244244
*/
245245
extern uint16_t coap_service_request_send(int8_t service_id, uint8_t options, const uint8_t destination_addr[static 16], uint16_t destination_port, sn_coap_msg_type_e msg_type, sn_coap_msg_code_e msg_code, const char *uri,
246-
sn_coap_content_format_e cont_type, const uint8_t *payload_ptr, uint16_t payload_len, coap_service_response_recv *request_response_cb);
246+
sn_coap_content_format_e cont_type, const uint8_t *payload_ptr, uint16_t payload_len, coap_service_response_recv *request_response_cb);
247247

248248
/**
249249
* \brief Sends CoAP service response
@@ -261,7 +261,7 @@ extern uint16_t coap_service_request_send(int8_t service_id, uint8_t options, co
261261
* \return -1 For failure
262262
*- 0 For success
263263
*/
264-
extern int8_t coap_service_response_send(int8_t service_id, uint8_t options, sn_coap_hdr_s *request_ptr, sn_coap_msg_code_e message_code, sn_coap_content_format_e content_type, const uint8_t *payload_ptr,uint16_t payload_len);
264+
extern int8_t coap_service_response_send(int8_t service_id, uint8_t options, sn_coap_hdr_s *request_ptr, sn_coap_msg_code_e message_code, sn_coap_content_format_e content_type, const uint8_t *payload_ptr, uint16_t payload_len);
265265

266266
/**
267267
* \brief Sends CoAP service response
@@ -280,7 +280,7 @@ extern int8_t coap_service_response_send(int8_t service_id, uint8_t options, sn_
280280
* \return -1 For failure
281281
*- 0 For success
282282
*/
283-
extern int8_t coap_service_response_send_by_msg_id(int8_t service_id, uint8_t options, uint16_t msg_id, sn_coap_msg_code_e message_code, sn_coap_content_format_e content_type, const uint8_t *payload_ptr,uint16_t payload_len);
283+
extern int8_t coap_service_response_send_by_msg_id(int8_t service_id, uint8_t options, uint16_t msg_id, sn_coap_msg_code_e message_code, sn_coap_content_format_e content_type, const uint8_t *payload_ptr, uint16_t payload_len);
284284

285285
/**
286286
* \brief Delete CoAP request transaction

0 commit comments

Comments
 (0)