~ubuntu-branches/debian/sid/ofono/sid

« back to all changes in this revision

Viewing changes to drivers/mbmmodem/mbmmodem.c

  • Committer: Bazaar Package Importer
  • Author(s): Andres Salomon
  • Date: 2009-11-02 18:46:37 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20091102184637-rh8ik6v1lcdgdh10
Tags: 0.9-1
* New upstream release.
* Since it runs w/out it, change the udev Depends to a Recommends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *
 
3
 *  oFono - Open Source Telephony
 
4
 *
 
5
 *  Copyright (C) 2008-2009  Intel Corporation. All rights reserved.
 
6
 *
 
7
 *  This program is free software; you can redistribute it and/or modify
 
8
 *  it under the terms of the GNU General Public License version 2 as
 
9
 *  published by the Free Software Foundation.
 
10
 *
 
11
 *  This program is distributed in the hope that it will be useful,
 
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 *  GNU General Public License for more details.
 
15
 *
 
16
 *  You should have received a copy of the GNU General Public License
 
17
 *  along with this program; if not, write to the Free Software
 
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
19
 *
 
20
 */
 
21
 
 
22
#ifdef HAVE_CONFIG_H
 
23
#include <config.h>
 
24
#endif
 
25
 
 
26
#include <glib.h>
 
27
#include <gatchat.h>
 
28
 
 
29
#define OFONO_API_SUBJECT_TO_CHANGE
 
30
#include <ofono/plugin.h>
 
31
#include <ofono/types.h>
 
32
 
 
33
#include "mbmmodem.h"
 
34
 
 
35
static int mbmmodem_init(void)
 
36
{
 
37
        mbm_gprs_context_init();
 
38
 
 
39
        return 0;
 
40
}
 
41
 
 
42
static void mbmmodem_exit(void)
 
43
{
 
44
        mbm_gprs_context_exit();
 
45
}
 
46
 
 
47
OFONO_PLUGIN_DEFINE(mbmmodem, "MBM modem driver", VERSION,
 
48
                        OFONO_PLUGIN_PRIORITY_DEFAULT,
 
49
                        mbmmodem_init, mbmmodem_exit)