~morphis/phablet-extras/ofono-sms-status-report

« back to all changes in this revision

Viewing changes to include/sim.h

  • Committer: Package Import Robot
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2012-08-22 19:59:08 UTC
  • mfrom: (1.3.3) (6.1.5 experimental)
  • Revision ID: package-import@ubuntu.com-20120822195908-0bmmk1hlh989bgk6
Tags: 1.9-1ubuntu1
* Merge with Debian experimental; remaining changes:
  - debian/control: explicitly Conflicts with modemmanager: having both
    installed / running at the same time causes issues causes issues with
    both claiming modem devices.
  - debian/patches/02-dont-handle-stacktraces.patch: stop catching stacktraces
    and printing the information internally, so apport can catch and report
    the possible bugs.
  - debian/ofono.postinst: on configure, notify the user that a reboot is
    required (so ofono can get started by upstart). (LP: #600501)
  - debian/rules: pass --no-restart-on-upgrade so ofono isn't automatically
    restarted when upgrades.
  - Adding upstart config / Removing standard init script
  - Adding Apport support
  - Patch for recognizing special Huawei devices with weird serial
  - Override lintian to avoid script-in-etc-init.d... warnings.
  - Update debian/compat to 7
* debian/series: add our patches to debian/patches/series now that the package
  uses quilt.
* debian/patches/02-dont-handle-stacktraces.patch: refreshed.
* debian/ofono-dev.install, debian/ofono.install:
  - Install usr/sbin/dundee and ofono.pc to the proper packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *
3
3
 *  oFono - Open Source Telephony
4
4
 *
5
 
 *  Copyright (C) 2008-2010  Intel Corporation. All rights reserved.
 
5
 *  Copyright (C) 2008-2011  Intel Corporation. All rights reserved.
6
6
 *
7
7
 *  This program is free software; you can redistribute it and/or modify
8
8
 *  it under the terms of the GNU General Public License version 2 as
75
75
enum ofono_sim_state {
76
76
        OFONO_SIM_STATE_NOT_PRESENT,
77
77
        OFONO_SIM_STATE_INSERTED,
 
78
        OFONO_SIM_STATE_LOCKED_OUT,
78
79
        OFONO_SIM_STATE_READY,
79
80
};
80
81
 
102
103
typedef void (*ofono_sim_file_read_cb_t)(int ok, int total_length, int record,
103
104
                                        const unsigned char *data,
104
105
                                        int record_length, void *userdata);
 
106
typedef void (*ofono_sim_file_changed_cb_t)(int id, void *userdata);
105
107
 
106
108
typedef void (*ofono_sim_file_write_cb_t)(int ok, void *userdata);
107
109
 
181
183
const char *ofono_sim_get_imsi(struct ofono_sim *sim);
182
184
const char *ofono_sim_get_mcc(struct ofono_sim *sim);
183
185
const char *ofono_sim_get_mnc(struct ofono_sim *sim);
 
186
const char *ofono_sim_get_spn(struct ofono_sim *sim);
184
187
enum ofono_sim_phase ofono_sim_get_phase(struct ofono_sim *sim);
185
188
 
186
189
enum ofono_sim_cphs_phase ofono_sim_get_cphs_phase(struct ofono_sim *sim);
194
197
 
195
198
enum ofono_sim_state ofono_sim_get_state(struct ofono_sim *sim);
196
199
 
 
200
typedef void (*ofono_sim_spn_cb_t)(const char *spn, const char *dc, void *data);
 
201
 
 
202
ofono_bool_t ofono_sim_add_spn_watch(struct ofono_sim *sim, unsigned int *id,
 
203
                                        ofono_sim_spn_cb_t cb, void *data,
 
204
                                        ofono_destroy_func destroy);
 
205
 
 
206
ofono_bool_t ofono_sim_remove_spn_watch(struct ofono_sim *sim, unsigned int *id);
 
207
 
197
208
void ofono_sim_inserted_notify(struct ofono_sim *sim, ofono_bool_t inserted);
198
209
 
199
210
struct ofono_sim_context *ofono_sim_context_create(struct ofono_sim *sim);
218
229
int ofono_sim_read_bytes(struct ofono_sim_context *context, int id,
219
230
                        unsigned short offset, unsigned short num_bytes,
220
231
                        ofono_sim_file_read_cb_t cb, void *data);
 
232
 
 
233
unsigned int ofono_sim_add_file_watch(struct ofono_sim_context *context,
 
234
                                        int id, ofono_sim_file_changed_cb_t cb,
 
235
                                        void *userdata,
 
236
                                        ofono_destroy_func destroy);
 
237
void ofono_sim_remove_file_watch(struct ofono_sim_context *context,
 
238
                                        unsigned int id);
 
239
 
221
240
#ifdef __cplusplus
222
241
}
223
242
#endif