2 * Copyright (c) 2018 Samsung Electronics Co., Ltd.
4 * Licensed under the Flora License, Version 1.1 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://floralicense.org/license/
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 #include "messages/message.h"
23 * @brief Connect message data
25 typedef struct message_bye {
26 message_t base; /** Base class */
30 * @brief Initializes message_bye_t object.
32 * @param[in] message ack message.
34 void message_bye_init(message_bye_t *message);
37 * @brief Destroys message_bye_t object.
39 * @param[in] message ack message.
41 void message_bye_destroy(message_bye_t *message);
44 * @brief Deserializes message_bye_t from reader's buffer.
46 * @param[in] message ack message.
47 * @param[in] reader reader object.
49 * @return 0 on success, other value on failure.
51 int message_bye_deserialize(message_bye_t *message, reader_t *reader);
54 * @brief Serializes message_bye_t into writer's buffer.
56 * @param[in] message message object.
57 * @param[in] writer writer object.
59 * @return 0 on success, other value on failure.
61 int message_bye_serialize(message_bye_t *message, writer_t *writer);
63 #endif /* end of include guard: MESSAGE_BYE_H */