Remove obsolete file.
[connman] / plugins / novatel.c
1 /*
2  *
3  *  Connection Manager
4  *
5  *  Copyright (C) 2007-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 #define CONNMAN_API_SUBJECT_TO_CHANGE
27 #include <connman/plugin.h>
28 #include <connman/device.h>
29 #include <connman/log.h>
30
31 #include "modem.h"
32
33 static int novatel_probe(struct connman_device *device)
34 {
35         DBG("device %p", device);
36
37         return 0;
38 }
39
40 static void novatel_remove(struct connman_device *device)
41 {
42         DBG("device %p", device);
43 }
44
45 static int novatel_enable(struct connman_device *device)
46 {
47         DBG("device %p", device);
48
49         connman_device_set_powered(device, TRUE);
50
51         return 0;
52 }
53
54 static int novatel_disable(struct connman_device *device)
55 {
56         DBG("device %p", device);
57
58         connman_device_set_powered(device, FALSE);
59
60         return 0;
61 }
62
63 static struct connman_device_driver novatel_driver = {
64         .name           = "novatel",
65         .type           = CONNMAN_DEVICE_TYPE_NOVATEL,
66         .probe          = novatel_probe,
67         .remove         = novatel_remove,
68         .enable         = novatel_enable,
69         .disable        = novatel_disable,
70 };
71
72 static int novatel_init(void)
73 {
74         return connman_device_driver_register(&novatel_driver);
75 }
76
77 static void novatel_exit(void)
78 {
79         connman_device_driver_unregister(&novatel_driver);
80 }
81
82 CONNMAN_PLUGIN_DEFINE(novatel, "Novatel Wireless device plugin", VERSION,
83                 CONNMAN_PLUGIN_PRIORITY_DEFAULT, novatel_init, novatel_exit)