summaryrefslogtreecommitdiff
path: root/src/devices/bluetooth/nm-bluez5-dun.h
blob: d09046fa3d7a058cd385e9e23c529e8a59e125ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// SPDX-License-Identifier: GPL-2.0+
/* NetworkManager -- Network link manager
 *
 * Copyright (C) 2014 Red Hat, Inc.
 */

#ifndef _NM_BLUEZ5_UTILS_H_
#define _NM_BLUEZ5_UTILS_H_

typedef struct _NMBluez5DunContext NMBluez5DunContext;

typedef void (*NMBluez5DunFunc) (NMBluez5DunContext *context,
                                 const char *rfcomm_dev,
                                 GError *error,
                                 gpointer user_data);

NMBluez5DunContext *nm_bluez5_dun_new (const char *adapter,
                                       const char *remote);

void nm_bluez5_dun_connect (NMBluez5DunContext *context,
                            NMBluez5DunFunc callback,
                            gpointer user_data);

/* Clean up connection resources */
void nm_bluez5_dun_cleanup (NMBluez5DunContext *context);

/* Clean up and dispose all resources */
void nm_bluez5_dun_free (NMBluez5DunContext *context);

#endif  /* _NM_BLUEZ5_UTILS_H_ */