[hipl-commit] [tiny] Rev 3530: Removed unneeded file update_init.c and moved functionality to update.c

  • From: Tim Just <tim.just@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Thu, 18 Feb 2010 11:36:29 +0200

Committer: Tim Just <tim.just@xxxxxxxxxxxxxx>
Date: Thu Feb 18 10:35:10 2010 +0100
Revision: 3530
Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: tiny

Log:
  Removed unneeded file update_init.c and moved functionality to update.c

Modified:
  D  modules/update/hipd/update_init.c
  D  modules/update/hipd/update_init.h
  M  modules/update/Makefile.am
  M  modules/update/hipd/update.c
  M  modules/update/hipd/update.h
  M  modules/update/module_info.xml

=== modified file 'modules/update/Makefile.am'
--- modules/update/Makefile.am  2010-01-29 14:31:49 +0000
+++ modules/update/Makefile.am  2010-02-18 09:35:10 +0000
@@ -1,4 +1,3 @@
 lib_LTLIBRARIES += modules/update/hipd/libhipupdate.la
-modules_update_hipd_libhipupdate_la_SOURCES = 
modules/update/hipd/update_init.c \
-                                              modules/update/hipd/update.c \
+modules_update_hipd_libhipupdate_la_SOURCES = modules/update/hipd/update.c \
                                               
modules/update/hipd/update_legacy.c
\ No newline at end of file

=== modified file 'modules/update/hipd/update.c'
--- modules/update/hipd/update.c        2010-02-17 15:59:39 +0000
+++ modules/update/hipd/update.c        2010-02-18 09:35:10 +0000
@@ -786,3 +786,15 @@
 
     return err;
 }
+
+/**
+ * Initialization function for update module.
+ *
+ * @note currently without any functionality.
+ *
+ * @return 0
+ */
+int hip_update_init(void)
+{
+    return 0;
+}

=== modified file 'modules/update/hipd/update.h'
--- modules/update/hipd/update.h        2010-02-17 16:39:54 +0000
+++ modules/update/hipd/update.h        2010-02-18 09:35:10 +0000
@@ -48,4 +48,6 @@
                                   struct hip_locator_info_addr_item *locators,
                                   int type);
 
+int hip_update_init(void);
+
 #endif /* HIP_HIPD_UPDATE_H */

=== removed file 'modules/update/hipd/update_init.c'
--- modules/update/hipd/update_init.c   2010-02-03 10:48:31 +0000
+++ modules/update/hipd/update_init.c   1970-01-01 00:00:00 +0000
@@ -1,14 +0,0 @@
-/*
- * update_init.c
- *
- *  Created on: Jan 29, 2010
- *      Author: just
- */
-
-#include "lib/core/debug.h"
-
-int update_init(void)
-{
-       HIP_DEBUG("update_init called.\n");
-       return 0;
-}

=== removed file 'modules/update/hipd/update_init.h'
--- modules/update/hipd/update_init.h   2010-02-03 15:59:25 +0000
+++ modules/update/hipd/update_init.h   1970-01-01 00:00:00 +0000
@@ -1,14 +0,0 @@
-/** @file
- * The header file for update_init.c
- *
- * @author  Tim Just
- * @version 0.1
- * @date    03.02.2010
- * @note    Distributed under <a 
href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>.
- */
-#ifndef HIP_UPDATE_INIT_H
-#define HIP_UPDATE_INIT_H
-
-int update_init(void);
-
-#endif /* HIP_UPDATE_INIT_H */

=== modified file 'modules/update/module_info.xml'
--- modules/update/module_info.xml      2010-01-29 14:31:49 +0000
+++ modules/update/module_info.xml      2010-02-18 09:35:10 +0000
@@ -12,7 +12,8 @@
     <!-- Mandatory: name, header_file, init_function, linkcommand -->
     <application
         name="hipd"
-        header_file="modules/update/hipd/update_init.h"
-        init_function="update_init"
+        header_file="modules/update/hipd/update.h"
+        init_function="hip_update_init"
         linkcommand="hipd_hipd_LDADD += modules/update/hipd/libhipupdate.la" />
-</module>
\ No newline at end of file
+</module>
+

Other related posts:

  • » [hipl-commit] [tiny] Rev 3530: Removed unneeded file update_init.c and moved functionality to update.c - Tim Just