/usr/include/libmbim-glib/mbim-device.h is in libmbim-glib-dev 1.6.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* libmbim-glib -- GLib/GIO based library to control MBIM devices
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*
* Copyright (C) 2013 Aleksander Morgado <aleksander@lanedo.com>
*/
#ifndef _LIBMBIM_GLIB_MBIM_DEVICE_H_
#define _LIBMBIM_GLIB_MBIM_DEVICE_H_
#if !defined (__LIBMBIM_GLIB_H_INSIDE__) && !defined (LIBMBIM_GLIB_COMPILATION)
#error "Only <libmbim-glib.h> can be included directly."
#endif
#include <glib-object.h>
#include <gio/gio.h>
#include "mbim-message.h"
G_BEGIN_DECLS
#define MBIM_TYPE_DEVICE (mbim_device_get_type ())
#define MBIM_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MBIM_TYPE_DEVICE, MbimDevice))
#define MBIM_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MBIM_TYPE_DEVICE, MbimDeviceClass))
#define MBIM_IS_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MBIM_TYPE_DEVICE))
#define MBIM_IS_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MBIM_TYPE_DEVICE))
#define MBIM_DEVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MBIM_TYPE_DEVICE, MbimDeviceClass))
typedef struct _MbimDevice MbimDevice;
typedef struct _MbimDeviceClass MbimDeviceClass;
typedef struct _MbimDevicePrivate MbimDevicePrivate;
#define MBIM_DEVICE_FILE "device-file"
#define MBIM_DEVICE_TRANSACTION_ID "device-transaction-id"
#define MBIM_DEVICE_IN_SESSION "device-in-session"
#define MBIM_DEVICE_SIGNAL_INDICATE_STATUS "device-indicate-status"
#define MBIM_DEVICE_SIGNAL_ERROR "device-error"
/**
* MbimDevice:
*
* The #MbimDevice structure contains private data and should only be accessed
* using the provided API.
*/
struct _MbimDevice {
/*< private >*/
GObject parent;
MbimDevicePrivate *priv;
};
struct _MbimDeviceClass {
/*< private >*/
GObjectClass parent;
};
GType mbim_device_get_type (void);
void mbim_device_new (GFile *file,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
MbimDevice *mbim_device_new_finish (GAsyncResult *res,
GError **error);
GFile *mbim_device_get_file (MbimDevice *self);
GFile *mbim_device_peek_file (MbimDevice *self);
const gchar *mbim_device_get_path (MbimDevice *self);
const gchar *mbim_device_get_path_display (MbimDevice *self);
gboolean mbim_device_is_open (MbimDevice *self);
void mbim_device_open (MbimDevice *self,
guint timeout,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean mbim_device_open_finish (MbimDevice *self,
GAsyncResult *res,
GError **error);
void mbim_device_close (MbimDevice *self,
guint timeout,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean mbim_device_close_finish (MbimDevice *self,
GAsyncResult *res,
GError **error);
gboolean mbim_device_close_force (MbimDevice *self,
GError **error);
guint32 mbim_device_get_next_transaction_id (MbimDevice *self);
void mbim_device_command (MbimDevice *self,
MbimMessage *message,
guint timeout,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
MbimMessage *mbim_device_command_finish (MbimDevice *self,
GAsyncResult *res,
GError **error);
G_END_DECLS
#endif /* _LIBMBIM_GLIB_MBIM_DEVICE_H_ */
|