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

« back to all changes in this revision

Viewing changes to gisi/modem.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) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
 
5
 *  Copyright (C) 2009-2010  Nokia Corporation and/or its subsidiary(-ies).
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
23
23
#define __GISI_MODEM_H
24
24
 
25
25
#include <stdint.h>
26
 
#include <glib/gtypes.h>
27
26
 
28
27
#include "phonet.h"
29
28
#include "message.h"
32
31
extern "C" {
33
32
#endif
34
33
 
 
34
enum GIsiModemFlags {
 
35
        GISI_MODEM_FLAG_USE_LEGACY_SUBSCRIBE = 1,
 
36
};
 
37
 
35
38
struct _GIsiModem;
36
39
typedef struct _GIsiModem GIsiModem;
37
40
 
44
47
GIsiModem *g_isi_modem_create(unsigned index);
45
48
GIsiModem *g_isi_modem_create_by_name(const char *name);
46
49
void g_isi_modem_destroy(GIsiModem *modem);
 
50
 
47
51
unsigned g_isi_modem_index(GIsiModem *modem);
 
52
 
 
53
uint8_t g_isi_modem_device(GIsiModem *modem);
 
54
int g_isi_modem_set_device(GIsiModem *modem, uint8_t dev);
 
55
 
48
56
void g_isi_modem_set_trace(GIsiModem *modem, GIsiNotifyFunc notify);
49
57
void g_isi_modem_set_debug(GIsiModem *modem, GIsiDebugFunc debug);
 
58
 
50
59
void *g_isi_modem_set_userdata(GIsiModem *modem, void *data);
51
60
void *g_isi_modem_get_userdata(GIsiModem *modem);
52
61
 
 
62
unsigned long g_isi_modem_flags(GIsiModem *modem);
 
63
void g_isi_modem_set_flags(GIsiModem *modem, unsigned long flags);
 
64
 
53
65
GIsiPending *g_isi_request_send(GIsiModem *modem, uint8_t resource,
54
66
                                        const void *__restrict buf, size_t len,
55
67
                                        unsigned timeout, GIsiNotifyFunc notify,