r4343 - trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/phone-kit

sean_chiang at sita.openmoko.org sean_chiang at sita.openmoko.org
Thu Apr 10 17:55:43 CEST 2008


Author: sean_chiang
Date: 2008-04-10 17:55:40 +0200 (Thu, 10 Apr 2008)
New Revision: 4343

Added:
   trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/phone-kit/moko-headset.c
   trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/phone-kit/moko-headset.h
Log:
forgot to svn add.  add the missing files.


Added: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/phone-kit/moko-headset.c
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/phone-kit/moko-headset.c	2008-04-10 14:45:39 UTC (rev 4342)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/phone-kit/moko-headset.c	2008-04-10 15:55:40 UTC (rev 4343)
@@ -0,0 +1,30 @@
+/*
+ *  moko-headset; set and get the headset status 
+ *
+ *  by Sean Chiang <sean_chiang at openmoko.com>
+ *
+ *  Copyright (C) 2006-2007 OpenMoko Inc.
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU Lesser Public License as published by
+ *  the Free Software Foundation; version 2 of the license.
+ *
+ *  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 Lesser Public License for more details.
+ *
+ *  Current Version: $Rev$ ($Date$) [$Author$]
+ */
+
+#include "moko-headset.h"
+
+static int headset_status = HEADSET_STATUS_OUT;
+
+void moko_headset_status_set(int status) {
+	headset_status = status;
+}
+
+int moko_headset_status_get(void) {
+	return headset_status;
+}

Added: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/phone-kit/moko-headset.h
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/phone-kit/moko-headset.h	2008-04-10 14:45:39 UTC (rev 4342)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/phone-kit/moko-headset.h	2008-04-10 15:55:40 UTC (rev 4343)
@@ -0,0 +1,31 @@
+/*
+ *  moko-headset; set and get the headset status 
+ *
+ *  by Sean Chiang <sean_chiang at openmoko.com>
+ *
+ *  Copyright (C) 2006-2007 OpenMoko Inc.
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU Lesser Public License as published by
+ *  the Free Software Foundation; version 2 of the license.
+ *
+ *  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 Lesser Public License for more details.
+ *
+ *  Current Version: $Rev$ ($Date$) [$Author$]
+ */
+
+#ifndef _HAVE_MOKO_HEADSET_H
+#define _HAVE_MOKO_HEADSET_H
+
+enum {
+	HEADSET_STATUS_IN = 0,
+	HEADSET_STATUS_OUT,
+};
+
+void moko_headset_status_set(int status);
+int moko_headset_status_get(void);
+
+#endif /* _HAVE_MOKO_HEADSET_H */





More information about the commitlog mailing list