Debian Codegraph @

src/libqmi-glib/qmi-endpoint-qmux.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) 2019 Eric Caruso <[email protected]>
21 */
22
23 #ifndef _LIBQMI_GLIB_QMI_ENDPOINT_QMUX_H_
24 #define _LIBQMI_GLIB_QMI_ENDPOINT_QMUX_H_
25
26 #include "qmi-ctl.h"
27 #include "qmi-endpoint.h"
28 #include "qmi-file.h"
29
30 #define QMI_TYPE_ENDPOINT_QMUX (qmi_endpoint_qmux_get_type ())
31 #define QMI_ENDPOINT_QMUX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), QMI_TYPE_ENDPOINT_QMUX, QmiEndpointQmux))
32 #define QMI_ENDPOINT_QMUX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), QMI_TYPE_ENDPOINT_QMUX, QmiEndpointQmuxClass))
33 #define QMI_IS_ENDPOINT_QMUX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), QMI_TYPE_ENDPOINT_QMUX))
34 #define QMI_IS_ENDPOINT_QMUX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), QMI_TYPE_ENDPOINT_QMUX))
35 #define QMI_ENDPOINT_QMUX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), QMI_TYPE_ENDPOINT_QMUX, QmiEndpointQmuxClass))
36
37 typedef struct _QmiEndpointQmux QmiEndpointQmux;
38 typedef struct _QmiEndpointQmuxClass QmiEndpointQmuxClass;
39 typedef struct _QmiEndpointQmuxPrivate QmiEndpointQmuxPrivate;
40
41 struct _QmiEndpointQmux {
42 /*< private >*/
43 QmiEndpoint parent;
44 QmiEndpointQmuxPrivate *priv;
45 };
46
47 struct _QmiEndpointQmuxClass {
48 /*< private >*/
49 QmiEndpointClass parent;
50 };
51
52 GType qmi_endpoint_qmux_get_type (void);
53 G_DEFINE_AUTOPTR_CLEANUP_FUNC (QmiEndpointQmux, g_object_unref)
54
55 QmiEndpointQmux *qmi_endpoint_qmux_new (QmiFile *file,
56 const gchar *proxy_path,
57 QmiClientCtl *client_ctl);
58
59 #endif /* _LIBQMI_GLIB_QMI_ENDPOINT_QMUX_H_ */