Minor code cleanup of BACnetWeeklySchedule (#646)

* Minor code cleanup of BACnetWeeklySchedule
This commit is contained in:
Steve Karg
2024-05-20 09:13:06 -05:00
committed by GitHub
parent 7baf912acd
commit ae3930920f
2 changed files with 50 additions and 87 deletions
+12 -28
View File
@@ -1,28 +1,12 @@
/**************************************************************************
*
* Copyright (C) 2012 Steve Karg <skarg@users.sourceforge.net>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*********************************************************************/
#ifndef WEEKLYSCHEDULE_H
#define WEEKLYSCHEDULE_H
/**
* @file
* @brief BACnetWeeklySchedule complex data type encode and decode
* @author Ondřej Hruška <ondra@ondrovo.com>
* @date September 2022
* @copyright SPDX-License-Identifier: MIT
*/
#ifndef BACNET_WEEKLY_SCHEDULE_H
#define BACNET_WEEKLY_SCHEDULE_H
#include <stdint.h>
#include <stdbool.h>
@@ -45,7 +29,7 @@ extern "C" {
BACNET_STACK_EXPORT
int bacnet_weeklyschedule_decode(
uint8_t * apdu,
int max_apdu_len,
int apdu_size,
BACNET_WEEKLY_SCHEDULE * value);
/** Encode WeeklySchedule */
@@ -60,7 +44,7 @@ extern "C" {
BACNET_STACK_EXPORT
int bacnet_weeklyschedule_context_decode(
uint8_t *apdu, int max_apdu_len, uint8_t tag_number,
uint8_t *apdu, int apdu_size, uint8_t tag_number,
BACNET_WEEKLY_SCHEDULE *value);
BACNET_STACK_EXPORT
@@ -70,4 +54,4 @@ extern "C" {
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* WEEKLYSCHEDULE_H */
#endif