tfm: Get rid of unnecessary global header tfm.h 28/223028/10
authorDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 17 Mar 2020 04:44:33 +0000 (13:44 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Wed, 18 Mar 2020 08:32:58 +0000 (17:32 +0900)
Global tfm context is no more used, so global header tfm.h is neither
required. This just removes unnecessary header, thus has no functional
changes.

Change-Id: I69daaaa255dea57676e04bdb0c8145cf4049ed87
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/interface.c
src/main.c
src/net.c
src/tfm.h [deleted file]
src/thor.c
src/thor.h [new file with mode: 0644]

index de6f5590112cfbcdd59ba911f5d17ec00cb0c9ba..69d2084f9f2c8b19c39b49700537cc9f8a45cea8 100644 (file)
@@ -21,7 +21,6 @@
 #include <pthread.h>
 #include <sys/queue.h>
 
-#include "tfm.h"
 #include "interface.h"
 
 struct tfm_interface_context {
index 141f165adc34021c203abc9408ae983064ef963d..0281c30d93399140d00ced2538143dc248663aa2 100644 (file)
@@ -20,7 +20,7 @@
 #include <unistd.h>
 #include <sys/wait.h>
 
-#include "tfm.h"
+#include "thor.h"
 #include "dfu.h"
 #include "interface.h"
 
index 9de67411e49bed391c9a99a0d5f6564b07185639..6cd85877e87e66a011479a70a89bd3b9421e2449 100644 (file)
--- a/src/net.c
+++ b/src/net.c
@@ -14,6 +14,7 @@
  * limitations under the License.
  */
 
+#include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <unistd.h>
@@ -23,7 +24,6 @@
 #include <sys/wait.h>
 #include <arpa/inet.h>
 
-#include "tfm.h"
 #include "interface.h"
 
 #define DEFAULT_PORT           23456
diff --git a/src/tfm.h b/src/tfm.h
deleted file mode 100644 (file)
index 7d18f4e..0000000
--- a/src/tfm.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * flash-manager - Tizen kernel-level image flashing solution
- *
- * 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.
- */
-
-#ifndef __TFM_H
-#define __TFM_H
-#include <string.h>
-#include <pthread.h>
-#include <sys/queue.h>
-
-#include "dfu.h"
-#include "interface.h"
-
-int thor_setup(struct tfm_interface *intf);
-int thor_process(struct tfm_interface *intf, struct dfu_context *dfu);
-#endif
index 426dd40d00e8c6db9ba607b1604d251a73964baf..6cb698431060524c1a60ed0dee133c44f720f2a4 100644 (file)
@@ -26,7 +26,6 @@
 #include <stdlib.h>
 #include <sys/reboot.h>
 
-#include "tfm.h"
 #include "dfu.h"
 #include "interface.h"
 #include "thor-proto.h"
diff --git a/src/thor.h b/src/thor.h
new file mode 100644 (file)
index 0000000..7a88006
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * flash-manager - Tizen kernel-level image flashing solution
+ *
+ * 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.
+ */
+
+#ifndef __THOR_H
+#define __THOR_H
+
+#include "dfu.h"
+#include "interface.h"
+
+int thor_setup(struct tfm_interface *intf);
+int thor_process(struct tfm_interface *intf, struct dfu_context *dfu);
+#endif