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.
17 #ifndef MESSAGE_CONNECT_H
18 #define MESSAGE_CONNECT_H
20 #include "messages/message.h"
23 * @brief Connect message data
25 typedef struct message_connect {
26 message_t base; /** Base class */
30 * @brief Initializes message_connect_t object.
32 * @param[in] message ack message.
34 void message_connect_init(message_connect_t *message);
37 * @brief Destroys message_connect_t object.
39 * @param[in] message ack message.
41 void message_connect_destroy(message_connect_t *message);
44 * @brief Deserializes message_connect_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_connect_deserialize(message_connect_t *message, reader_t *reader);
54 * @brief Serializes message_connect_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_connect_serialize(message_connect_t *message, writer_t *writer);
63 #endif /* end of include guard: MESSAGE_CONNECT_H */