Debian Codegraph @

src/libqmi-glib/qmi-net-port-manager-rmnet.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) 2020 Eric Caruso <[email protected]>
21 * Copyright (C) 2020 Andrew Lassalle <[email protected]>
22 */
23
24 #ifndef _LIBQMI_GLIB_QMI_NET_PORT_MANAGER_RMNET_H_
25 #define _LIBQMI_GLIB_QMI_NET_PORT_MANAGER_RMNET_H_
26
27 #include <gio/gio.h>
28 #include <glib-object.h>
29
30 #include "qmi-net-port-manager.h"
31
32 #define QMI_TYPE_NET_PORT_MANAGER_RMNET (qmi_net_port_manager_rmnet_get_type ())
33 #define QMI_NET_PORT_MANAGER_RMNET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), QMI_TYPE_NET_PORT_MANAGER_RMNET, QmiNetPortManagerRmnet))
34 #define QMI_NET_PORT_MANAGER_RMNET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), QMI_TYPE_NET_PORT_MANAGER_RMNET, QmiNetPortManagerRmnetClass))
35 #define QMI_IS_NET_PORT_MANAGER_RMNET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), QMI_TYPE_NET_PORT_MANAGER_RMNET))
36 #define QMI_IS_NET_PORT_MANAGER_RMNET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), QMI_TYPE_NET_PORT_MANAGER_RMNET))
37 #define QMI_NET_PORT_MANAGER_RMNET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), QMI_TYPE_NET_PORT_MANAGER_RMNET, QmiNetPortManagerRmnetClass))
38
39 typedef struct _QmiNetPortManagerRmnet QmiNetPortManagerRmnet;
40 typedef struct _QmiNetPortManagerRmnetClass QmiNetPortManagerRmnetClass;
41 typedef struct _QmiNetPortManagerRmnetPrivate QmiNetPortManagerRmnetPrivate;
42
43 struct _QmiNetPortManagerRmnet {
44 QmiNetPortManager parent;
45 QmiNetPortManagerRmnetPrivate *priv;
46 };
47
48 struct _QmiNetPortManagerRmnetClass {
49 QmiNetPortManagerClass parent;
50 };
51
52 GType qmi_net_port_manager_rmnet_get_type (void);
53 G_DEFINE_AUTOPTR_CLEANUP_FUNC (QmiNetPortManagerRmnet, g_object_unref)
54
55 QmiNetPortManagerRmnet *qmi_net_port_manager_rmnet_new (GError **error);
56
57 #endif /* _LIBQMI_GLIB_QMI_NET_PORT_MANAGER_RMNET_H_ */