[hipl-commit] [tiny] Rev 3512: Added example file for module initialization and adjusted .bzrignore.

  • From: Tim Just <tim.just@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Tue, 02 Feb 2010 09:56:37 +0200

Committer: Tim Just <tim.just@xxxxxxxxxxxxxx>
Date: Tue Feb 02 08:55:10 2010 +0100
Revision: 3512
Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: tiny

Log:
  Added example file for module initialization and adjusted .bzrignore.

Modified:
  A  modules/update/hipd/update_init.c
  A  modules/update/hipd/update_init.h
  M  .bzrignore

=== modified file '.bzrignore'
--- .bzrignore  2010-01-25 16:50:41 +0000
+++ .bzrignore  2010-02-02 07:55:10 +0000
@@ -67,3 +67,7 @@
 ./compile
 test/dh_performance
 gmon.out
+Makefile.modules
+results
+modules/hipd_modules.h
+modules/hipfw_modules.h

=== added file 'modules/update/hipd/update_init.c'
--- modules/update/hipd/update_init.c   1970-01-01 00:00:00 +0000
+++ modules/update/hipd/update_init.c   2010-02-02 07:55:10 +0000
@@ -0,0 +1,14 @@
+/*
+ * 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;
+}

=== added file 'modules/update/hipd/update_init.h'
--- modules/update/hipd/update_init.h   1970-01-01 00:00:00 +0000
+++ modules/update/hipd/update_init.h   2010-02-02 07:55:10 +0000
@@ -0,0 +1,13 @@
+/*
+ * update_init.h
+ *
+ *  Created on: Jan 29, 2010
+ *      Author: just
+ */
+
+#ifndef UPDATE_INIT_H_
+#define UPDATE_INIT_H_
+
+int update_init(void);
+
+#endif /* UPDATE_INIT_H_ */

Other related posts: