| 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_MBIM_H_ |
| 24 |
#define _LIBQMI_GLIB_QMI_ENDPOINT_MBIM_H_ |
| 25 |
|
| 26 |
#include "qmi-endpoint.h" |
| 27 |
#include "qmi-file.h" |
| 28 |
|
| 29 |
#define QMI_TYPE_ENDPOINT_MBIM (qmi_endpoint_mbim_get_type ()) |
| 30 |
#define QMI_ENDPOINT_MBIM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), QMI_TYPE_ENDPOINT_MBIM, QmiEndpointMbim)) |
| 31 |
#define QMI_ENDPOINT_MBIM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), QMI_TYPE_ENDPOINT_MBIM, QmiEndpointMbimClass)) |
| 32 |
#define QMI_IS_ENDPOINT_MBIM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), QMI_TYPE_ENDPOINT_MBIM)) |
| 33 |
#define QMI_IS_ENDPOINT_MBIM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), QMI_TYPE_ENDPOINT_MBIM)) |
| 34 |
#define QMI_ENDPOINT_MBIM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), QMI_TYPE_ENDPOINT_MBIM, QmiEndpointMbimClass)) |
| 35 |
|
| 36 |
typedef struct _QmiEndpointMbim QmiEndpointMbim; |
| 37 |
typedef struct _QmiEndpointMbimClass QmiEndpointMbimClass; |
| 38 |
typedef struct _QmiEndpointMbimPrivate QmiEndpointMbimPrivate; |
| 39 |
|
| 40 |
struct _QmiEndpointMbim { |
| 41 |
/*< private >*/ |
| 42 |
QmiEndpoint parent; |
| 43 |
QmiEndpointMbimPrivate *priv; |
| 44 |
}; |
| 45 |
|
| 46 |
struct _QmiEndpointMbimClass { |
| 47 |
/*< private >*/ |
| 48 |
QmiEndpointClass parent; |
| 49 |
}; |
| 50 |
|
| 51 |
GType qmi_endpoint_mbim_get_type (void); |
| 52 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (QmiEndpointMbim, g_object_unref) |
| 53 |
|
| 54 |
QmiEndpointMbim *qmi_endpoint_mbim_new (QmiFile *file); |
| 55 |
|
| 56 |
#endif /* _LIBQMI_GLIB_QMI_ENDPOINT_MBIM_H_ */ |