Debian Codegraph @

src/libqmi-glib/qmi-endpoint-qrtr.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-2020 Eric Caruso <[email protected]>
21 * Copyright (C) 2020 Aleksander Morgado <[email protected]>
22 */
23
24 #ifndef _LIBQMI_GLIB_QMI_ENDPOINT_QRTR_H_
25 #define _LIBQMI_GLIB_QMI_ENDPOINT_QRTR_H_
26
27 #include <libqrtr-glib.h>
28
29 #include "qmi-endpoint.h"
30
31 #define QMI_TYPE_ENDPOINT_QRTR (qmi_endpoint_qrtr_get_type ())
32 #define QMI_ENDPOINT_QRTR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), QMI_TYPE_ENDPOINT_QRTR, QmiEndpointQrtr))
33 #define QMI_ENDPOINT_QRTR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), QMI_TYPE_ENDPOINT_QRTR, QmiEndpointQrtrClass))
34 #define QMI_IS_ENDPOINT_QRTR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), QMI_TYPE_ENDPOINT_QRTR))
35 #define QMI_IS_ENDPOINT_QRTR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), QMI_TYPE_ENDPOINT_QRTR))
36 #define QMI_ENDPOINT_QRTR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), QMI_TYPE_ENDPOINT_QRTR, QmiEndpointQrtrClass))
37
38 typedef struct _QmiEndpointQrtr QmiEndpointQrtr;
39 typedef struct _QmiEndpointQrtrClass QmiEndpointQrtrClass;
40 typedef struct _QmiEndpointQrtrPrivate QmiEndpointQrtrPrivate;
41
42 struct _QmiEndpointQrtr {
43 /*< private >*/
44 QmiEndpoint parent;
45 QmiEndpointQrtrPrivate *priv;
46 };
47
48 struct _QmiEndpointQrtrClass {
49 /*< private >*/
50 QmiEndpointClass parent;
51 };
52
53 GType qmi_endpoint_qrtr_get_type (void);
54
55 QmiEndpointQrtr *qmi_endpoint_qrtr_new (QrtrNode *node);
56
57 #endif /* _LIBQMI_GLIB_QMI_ENDPOINT_QRTR_H_ */