[hipl-commit] [tiny] Rev 3653: Renamed lmod_add_module_id to lmod_register_module.

  • From: Tim Just <tim.just@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Wed, 10 Mar 2010 17:27:23 +0200

Committer: Tim Just <tim.just@xxxxxxxxxxxxxx>
Date: Wed Mar 10 16:24:59 2010 +0100
Revision: 3653
Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: tiny

Log:
  Renamed lmod_add_module_id to lmod_register_module.
  
  The new name seems to be more appositely.

Modified:
  M  lib/modularization/modularization.c
  M  lib/modularization/modularization.h
  M  modules/heartbeat/hipd/heartbeat.c
  M  modules/update/hipd/update.c

=== modified file 'lib/modularization/modularization.c'
--- lib/modularization/modularization.c 2010-03-10 15:13:42 +0000
+++ lib/modularization/modularization.c 2010-03-10 15:24:59 +0000
@@ -331,7 +331,7 @@
 }
 
 /**
- * lmod_add_module_id
+ * lmod_register_module
  *
  * Add an identifier to the module list. All modules should register an id.
  * So everyone else can check, if a certain module is loaded.
@@ -343,7 +343,7 @@
  * @return Success =  0
  *         Error   = -1 (if the identifier already exists)
  */
-int lmod_add_module_id(const char *module_id)
+int lmod_register_module(const char *module_id)
 {
     if (lmod_module_exists(module_id)) {
         return -1;

=== modified file 'lib/modularization/modularization.h'
--- lib/modularization/modularization.h 2010-03-09 17:32:50 +0000
+++ lib/modularization/modularization.h 2010-03-10 15:24:59 +0000
@@ -48,7 +48,7 @@
 
 void  lmod_uninit_state(struct modular_state *state);
 
-int lmod_add_module_id(const char *module_id);
+int lmod_register_module(const char *module_id);
 
 int lmod_module_exists(const char *module_id);
 

=== modified file 'modules/heartbeat/hipd/heartbeat.c'
--- modules/heartbeat/hipd/heartbeat.c  2010-03-10 15:06:40 +0000
+++ modules/heartbeat/hipd/heartbeat.c  2010-03-10 15:24:59 +0000
@@ -195,7 +195,7 @@
     struct icmp6_filter filter;
     int *icmpsockfd = &hip_icmp_sock;
 
-    HIP_IFEL(lmod_add_module_id("heartbeat"),
+    HIP_IFEL(lmod_register_module("heartbeat"),
              -1,
              "Error on registering HEATBEAT module.\n");
 

=== modified file 'modules/update/hipd/update.c'
--- modules/update/hipd/update.c        2010-03-10 15:06:40 +0000
+++ modules/update/hipd/update.c        2010-03-10 15:24:59 +0000
@@ -880,7 +880,7 @@
 {
     int err = 0;
 
-    HIP_IFEL(lmod_add_module_id("update"),
+    HIP_IFEL(lmod_register_module("update"),
              -1,
              "Error on registering UPDATE module.\n");

Other related posts:

  • » [hipl-commit] [tiny] Rev 3653: Renamed lmod_add_module_id to lmod_register_module. - Tim Just