/usr/include/libmbim-glib/mbim-sms.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 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | /* GENERATED CODE... DO NOT EDIT */
/*
* 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@gnu.org>
*/
#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
#include "mbim-message.h"
#include "mbim-device.h"
#include "mbim-enums.h"
#ifndef __LIBMBIM_GLIB_MBIM_SMS__
#define __LIBMBIM_GLIB_MBIM_SMS__
G_BEGIN_DECLS
/*****************************************************************************/
/* Struct: MbimSmsPduReadRecord */
/**
* MbimSmsPduReadRecord:
* @message_index: a #guint32.
* @message_status: a #guint32.
* @pdu_data_size: size of the pdu_data array.
* @pdu_data: an array of #guint8 values.
*/
typedef struct {
guint32 message_index;
guint32 message_status;
guint32 pdu_data_size;
guint8 *pdu_data;
} MbimSmsPduReadRecord;
void mbim_sms_pdu_read_record_array_free (MbimSmsPduReadRecord **array);
/*****************************************************************************/
/* Struct: MbimSmsCdmaReadRecord */
/**
* MbimSmsCdmaReadRecord:
* @message_index: a #guint32.
* @message_status: a #guint32.
* @address: a string.
* @timestamp: a string.
* @encoding: a #guint32.
* @language: a #guint32.
* @encoded_message_size: size of the encoded_message array.
* @encoded_message: an array of #guint8 values.
* @encoded_message_size_in_characters: a #guint32.
*/
typedef struct {
guint32 message_index;
guint32 message_status;
gchar *address;
gchar *timestamp;
guint32 encoding;
guint32 language;
guint32 encoded_message_size;
guint8 *encoded_message;
guint32 encoded_message_size_in_characters;
} MbimSmsCdmaReadRecord;
void mbim_sms_cdma_read_record_array_free (MbimSmsCdmaReadRecord **array);
/*****************************************************************************/
/* Struct: MbimSmsPduSendRecord */
/**
* MbimSmsPduSendRecord:
* @pdu_data_size: size of the pdu_data array.
* @pdu_data: an array of #guint8 values.
*/
typedef struct {
guint32 pdu_data_size;
guint8 *pdu_data;
} MbimSmsPduSendRecord;
void mbim_sms_pdu_send_record_free (MbimSmsPduSendRecord *var);
/*****************************************************************************/
/* Struct: MbimSmsCdmaSendRecord */
/**
* MbimSmsCdmaSendRecord:
* @encoding: a #guint32.
* @language: a #guint32.
* @address: a string.
* @encoded_message_size: size of the encoded_message array.
* @encoded_message: an array of #guint8 values.
* @encoded_message_size_in_characters: a #guint32.
*/
typedef struct {
guint32 encoding;
guint32 language;
gchar *address;
guint32 encoded_message_size;
guint8 *encoded_message;
guint32 encoded_message_size_in_characters;
} MbimSmsCdmaSendRecord;
void mbim_sms_cdma_send_record_free (MbimSmsCdmaSendRecord *var);
/*****************************************************************************/
/* Message (Query): MBIM Message SMS Configuration */
MbimMessage *mbim_message_sms_configuration_query_new (
GError **error);
/*****************************************************************************/
/* Message (Set): MBIM Message SMS Configuration */
MbimMessage *mbim_message_sms_configuration_set_new (
MbimSmsFormat format,
const gchar *sc_address,
GError **error);
/*****************************************************************************/
/* Message (Response): MBIM Message SMS Configuration */
gboolean mbim_message_sms_configuration_response_parse (
const MbimMessage *message,
MbimSmsStorageState *sms_storage_state,
MbimSmsFormat *format,
guint32 *max_messages,
guint32 *cdma_short_message_size,
gchar **sc_address,
GError **error);
/*****************************************************************************/
/* Message (Query): MBIM Message SMS Read */
MbimMessage *mbim_message_sms_read_query_new (
MbimSmsFormat format,
MbimSmsFlag flag,
guint32 message_index,
GError **error);
/*****************************************************************************/
/* Message (Response): MBIM Message SMS Read */
gboolean mbim_message_sms_read_response_parse (
const MbimMessage *message,
MbimSmsFormat *format,
guint32 *messages_count,
MbimSmsPduReadRecord ***pdu_messages,
MbimSmsCdmaReadRecord ***cdma_messages,
GError **error);
/*****************************************************************************/
/* Message (Notification): MBIM Message SMS Read */
gboolean mbim_message_sms_read_notification_parse (
const MbimMessage *message,
MbimSmsFormat *format,
guint32 *messages_count,
MbimSmsPduReadRecord ***pdu_messages,
MbimSmsCdmaReadRecord ***cdma_messages,
GError **error);
/*****************************************************************************/
/* Message (Set): MBIM Message SMS Send */
MbimMessage *mbim_message_sms_send_set_new (
MbimSmsFormat format,
const MbimSmsPduSendRecord *pdu_message,
const MbimSmsCdmaSendRecord *cdma_message,
GError **error);
/*****************************************************************************/
/* Message (Response): MBIM Message SMS Send */
gboolean mbim_message_sms_send_response_parse (
const MbimMessage *message,
guint32 *message_reference,
GError **error);
/*****************************************************************************/
/* Message (Set): MBIM Message SMS Delete */
MbimMessage *mbim_message_sms_delete_set_new (
MbimSmsFlag flag,
guint32 message_index,
GError **error);
/*****************************************************************************/
/* Message (Response): MBIM Message SMS Delete */
gboolean mbim_message_sms_delete_response_parse (
const MbimMessage *message,
GError **error);
/*****************************************************************************/
/* Message (Query): MBIM Message SMS Message Store Status */
MbimMessage *mbim_message_sms_message_store_status_query_new (
GError **error);
/*****************************************************************************/
/* Message (Response): MBIM Message SMS Message Store Status */
gboolean mbim_message_sms_message_store_status_response_parse (
const MbimMessage *message,
MbimSmsStatusFlag *flag,
guint32 *message_index,
GError **error);
/*****************************************************************************/
/* Message (Notification): MBIM Message SMS Message Store Status */
gboolean mbim_message_sms_message_store_status_notification_parse (
const MbimMessage *message,
MbimSmsStatusFlag *flag,
guint32 *message_index,
GError **error);
G_END_DECLS
#endif /* __LIBMBIM_GLIB_MBIM_SMS__ */
|