summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-07-29 16:40:30 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-07-29 16:44:17 -0500
commit8e4d029d84a52914e09ff10d756c863df6cd3754 (patch)
tree9cb79a8007842d2d1df88c3f3d857d731ae6b0b3 /src
parent98436eb53916ff3d284387cd644a193629c16e65 (diff)
downloadofono-8e4d029d84a52914e09ff10d756c863df6cd3754.tar.bz2
Get rid of modem.h
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am2
-rw-r--r--src/modem.c5
-rw-r--r--src/modem.h25
3 files changed, 4 insertions, 28 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 1b648709..2e3e607d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -8,7 +8,7 @@ endif
sbin_PROGRAMS = ofonod
ofonod_SOURCES = main.c ofono.h log.c plugin.c \
- driver.h modem.h modem.c common.h common.c \
+ driver.h modem.c common.h common.c \
manager.c dbus.c util.h util.c \
network.c voicecall.c ussd.h ussd.c sms.c \
call-settings.c call-forwarding.c call-meter.c \
diff --git a/src/modem.c b/src/modem.c
index e52a3987..5b19b935 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -393,7 +393,8 @@ static gboolean query_manufacturer(gpointer user)
return FALSE;
}
-struct ofono_modem *modem_create(int id, struct ofono_modem_attribute_ops *ops)
+static struct ofono_modem *modem_create(int id,
+ struct ofono_modem_attribute_ops *ops)
{
char path[128];
DBusConnection *conn = ofono_dbus_get_connection();
@@ -432,7 +433,7 @@ struct ofono_modem *modem_create(int id, struct ofono_modem_attribute_ops *ops)
return modem;
}
-void modem_remove(struct ofono_modem *modem)
+static void modem_remove(struct ofono_modem *modem)
{
DBusConnection *conn = ofono_dbus_get_connection();
/* Need to make a copy to keep gdbus happy */
diff --git a/src/modem.h b/src/modem.h
deleted file mode 100644
index 60a142f2..00000000
--- a/src/modem.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- *
- * oFono - Open Source Telephony
- *
- * Copyright (C) 2008-2009 Intel Corporation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * This program 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
- */
-
-struct ofono_modem_attribute_ops;
-
-struct ofono_modem *modem_create(int id, struct ofono_modem_attribute_ops *ops);
-void modem_remove(struct ofono_modem *modem);