Diff between 11d6f55490920baeb86f6d533b7efa6e903e84f0 and 204fb41d73309b4664baeb0d5cac98fe886a4aaa

Changed Files

File Additions Deletions Status
android/Makefile.am +1 -0 modified
android/tester-bluetooth.c +32 -0 added
android/tester-main.h +4 -0 modified

Full Patch

diff --git a/android/Makefile.am b/android/Makefile.am
index 15c7b4c..23a04e3 100644
--- a/android/Makefile.am
+++ b/android/Makefile.am
@@ -178,6 +178,7 @@ android_android_tester_ng_SOURCES = emulator/btdev.h emulator/btdev.c \
 				src/shared/timeout.h src/shared/timeout-glib.c \
 				monitor/rfcomm.h \
 				android/hardware/hardware.c \
+				android/tester-bluetooth.c \
 				android/tester-main.h android/tester-main.c
 
 android_android_tester_ng_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/android \
diff --git a/android/tester-bluetooth.c b/android/tester-bluetooth.c
new file mode 100644
index 0000000..9acf999
--- /dev/null
+++ b/android/tester-bluetooth.c
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2014 Intel Corporation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+#include "tester-main.h"
+
+static struct queue *list; /* List of bluetooth test cases */
+
+struct queue *get_bluetooth_tests(void)
+{
+	list = queue_new();
+
+	return list;
+}
+
+void remove_bluetooth_tests(void)
+{
+	queue_destroy(list, NULL);
+}
diff --git a/android/tester-main.h b/android/tester-main.h
index da87c8b..8f10e9f 100644
--- a/android/tester-main.h
+++ b/android/tester-main.h
@@ -84,3 +84,7 @@ struct step {
 	void (*action)(void);
 	struct bt_action_data action_result;
 };
+
+/* Get, remove test cases API */
+struct queue *get_bluetooth_tests(void);
+void remove_bluetooth_tests(void);