Fix memory leak
[platform/core/connectivity/asp-manager.git] / src / asp-session-peer-interface.h
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 #ifndef __ASP_SESSION_PEER_INTERFACE_H__
18 #define __ASP_SESSION_PEER_INTERFACE_H__
19
20 #include <glib.h>
21 #include <gio/gio.h>
22
23 void asp_session_recv_req(GSocketAddress *sock_addr, gpointer p_msg);
24 void asp_session_recv_ack(GSocketAddress *sock_addr, guint8 *session_mac,
25                           guint32 session_id, gpointer p_msg);
26 void asp_session_recv_nack(GSocketAddress *sock_addr, guint8 *session_mac,
27                            guint32 session_id, gpointer p_msg);
28 void asp_session_peer_destroyed(guint8 *session_mac, guint32 session_id);
29
30 #endif                                                  /* __ASP_SESSION_PEER_INTERFACE_H__ */