Debian Codegraph @

src/libqmi-glib/qmi-net-port-manager-qmiwwan.h

raw
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * libqmi-glib -- GLib/GIO based library to control QMI devices
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301 USA.
19 *
20 * Copyright (C) 2021 Aleksander Morgado <[email protected]>
21 */
22
23 #ifndef _LIBQMI_GLIB_QMI_NET_PORT_MANAGER_QMIWWAN_H_
24 #define _LIBQMI_GLIB_QMI_NET_PORT_MANAGER_QMIWWAN_H_
25
26 #include <gio/gio.h>
27 #include <glib-object.h>
28
29 #include "qmi-net-port-manager.h"
30
31 #define QMI_TYPE_NET_PORT_MANAGER_QMIWWAN (qmi_net_port_manager_qmiwwan_get_type ())
32 #define QMI_NET_PORT_MANAGER_QMIWWAN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), QMI_TYPE_NET_PORT_MANAGER_QMIWWAN, QmiNetPortManagerQmiwwan))
33 #define QMI_NET_PORT_MANAGER_QMIWWAN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), QMI_TYPE_NET_PORT_MANAGER_QMIWWAN, QmiNetPortManagerQmiwwanClass))
34 #define QMI_IS_NET_PORT_MANAGER_QMIWWAN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), QMI_TYPE_NET_PORT_MANAGER_QMIWWAN))
35 #define QMI_IS_NET_PORT_MANAGER_QMIWWAN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), QMI_TYPE_NET_PORT_MANAGER_QMIWWAN))
36 #define QMI_NET_PORT_MANAGER_QMIWWAN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), QMI_TYPE_NET_PORT_MANAGER_QMIWWAN, QmiNetPortManagerQmiwwanClass))
37
38 typedef struct _QmiNetPortManagerQmiwwan QmiNetPortManagerQmiwwan;
39 typedef struct _QmiNetPortManagerQmiwwanClass QmiNetPortManagerQmiwwanClass;
40 typedef struct _QmiNetPortManagerQmiwwanPrivate QmiNetPortManagerQmiwwanPrivate;
41
42 struct _QmiNetPortManagerQmiwwan {
43 QmiNetPortManager parent;
44 QmiNetPortManagerQmiwwanPrivate *priv;
45 };
46
47 struct _QmiNetPortManagerQmiwwanClass {
48 QmiNetPortManagerClass parent;
49 };
50
51 GType qmi_net_port_manager_qmiwwan_get_type (void);
52 G_DEFINE_AUTOPTR_CLEANUP_FUNC (QmiNetPortManagerQmiwwan, g_object_unref)
53
54 QmiNetPortManagerQmiwwan *qmi_net_port_manager_qmiwwan_new (const gchar *iface,
55 GError **error);
56
57 #endif /* _LIBQMI_GLIB_QMI_NET_PORT_MANAGER_QMIWWAN_H_ */