summaryrefslogtreecommitdiffstats
path: root/drivers/calypsomodem/calypsomodem.c
diff options
context:
space:
mode:
authorDenis Kenzior <denis.kenzior@intel.com>2009-09-04 20:17:29 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-09-04 20:37:50 -0500
commit7362878e6cf485c149577e7fae5e3f09d2a2f9d3 (patch)
tree7775667163b2a8b28fbc68da2cf7c72a99676249 /drivers/calypsomodem/calypsomodem.c
parent8e449d6184412867c0403f1ee9a2f874746b5ca7 (diff)
downloadofono-7362878e6cf485c149577e7fae5e3f09d2a2f9d3.tar.bz2
Add calypso voicecalls driver
Diffstat (limited to 'drivers/calypsomodem/calypsomodem.c')
-rw-r--r--drivers/calypsomodem/calypsomodem.c49
1 files changed, 49 insertions, 0 deletions
diff --git a/drivers/calypsomodem/calypsomodem.c b/drivers/calypsomodem/calypsomodem.c
new file mode 100644
index 00000000..0cc70b6a
--- /dev/null
+++ b/drivers/calypsomodem/calypsomodem.c
@@ -0,0 +1,49 @@
+/*
+ *
+ * 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
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <glib.h>
+#include <gatchat.h>
+
+#define OFONO_API_SUBJECT_TO_CHANGE
+#include <ofono/plugin.h>
+#include <ofono/types.h>
+
+#include "calypsomodem.h"
+
+static int calypsomodem_init(void)
+{
+ calypso_voicecall_init();
+
+ return 0;
+}
+
+static void calypsomodem_exit(void)
+{
+ calypso_voicecall_exit();
+}
+
+OFONO_PLUGIN_DEFINE(calypsomodem, "Calypso modem driver", VERSION,
+ OFONO_PLUGIN_PRIORITY_DEFAULT,
+ calypsomodem_init, calypsomodem_exit)