Debian Codegraph @

src/libmbim-glib/mbim-net-port-manager-wwan.h

raw
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* SPDX-License-Identifier: LGPL-2.1-or-later */
3 /*
4 * libmbim-glib -- GLib/GIO based library to control MBIM devices
5 *
6 * Copyright (C) 2022 Daniele Palmas <[email protected]>
7 *
8 * Based on previous work:
9 * Copyright (C) 2020-2021 Eric Caruso <[email protected]>
10 * Copyright (C) 2020-2021 Andrew Lassalle <[email protected]>
11 * Copyright (C) 2021 Aleksander Morgado <[email protected]>
12 */
13
14 #ifndef _LIBMBIM_GLIB_MBIM_NET_PORT_MANAGER_WWAN_H_
15 #define _LIBMBIM_GLIB_MBIM_NET_PORT_MANAGER_WWAN_H_
16
17 #include <gio/gio.h>
18 #include <glib-object.h>
19
20 #define MBIM_TYPE_NET_PORT_MANAGER_WWAN (mbim_net_port_manager_wwan_get_type ())
21 #define MBIM_NET_PORT_MANAGER_WWAN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MBIM_TYPE_NET_PORT_MANAGER_WWAN, MbimNetPortManagerWwan))
22 #define MBIM_NET_PORT_MANAGER_WWAN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MBIM_TYPE_NET_PORT_MANAGER_WWAN, MbimNetPortManagerWwanClass))
23 #define MBIM_IS_NET_PORT_MANAGER_WWAN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MBIM_TYPE_NET_PORT_MANAGER_WWAN))
24 #define MBIM_IS_NET_PORT_MANAGER_WWAN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MBIM_TYPE_NET_PORT_MANAGER_WWAN))
25 #define MBIM_NET_PORT_MANAGER_WWAN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MBIM_TYPE_NET_PORT_MANAGER_WWAN, MbimNetPortManagerWwanClass))
26
27 typedef struct _MbimNetPortManagerWwan MbimNetPortManagerWwan;
28 typedef struct _MbimNetPortManagerWwanClass MbimNetPortManagerWwanClass;
29
30 struct _MbimNetPortManagerWwan {
31 MbimNetPortManager parent;
32 };
33
34 struct _MbimNetPortManagerWwanClass {
35 MbimNetPortManagerClass parent;
36 };
37
38 GType mbim_net_port_manager_wwan_get_type (void);
39 G_DEFINE_AUTOPTR_CLEANUP_FUNC (MbimNetPortManagerWwan, g_object_unref)
40
41 MbimNetPortManagerWwan *mbim_net_port_manager_wwan_new (GError **error);
42
43 #endif /* _LIBMBIM_GLIB_MBIM_NET_PORT_MANAGER_WWAN_H_ */