[hipl-commit] [trunk] Rev 4441: Rename lib/conf/hipconf.[ch] => lib/conf/conf.[ch].

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Thu, 29 Apr 2010 18:00:33 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 29/04/2010 at 18:00:33
Revision: 4441
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Rename lib/conf/hipconf.[ch] => lib/conf/conf.[ch].
  
  This avoids a name clash with a similarly named file in the tools 
subdirectory.

Modified:
  R  lib/conf/hipconf.c => lib/conf/conf.c
  R  lib/conf/hipconf.h => lib/conf/conf.h
  M  Makefile.am
  M  doc/HACKING
  M  hipd/hipd.h
  M  hipd/hit_to_ip.c
  M  hipd/init.h
  M  hipd/netdev.c
  M  lib/core/debug.c
  M  lib/core/hostsfiles.h
  M  lib/core/message.h
  M  lib/gui/tools.c
  M  lib/tool/lutil.c
  M  tools/hipconf.c
  M  lib/conf/conf.c
  M  lib/conf/conf.h

=== modified file 'Makefile.am'
--- Makefile.am 2010-04-28 17:49:19 +0000
+++ Makefile.am 2010-04-29 14:59:33 +0000
@@ -219,7 +219,7 @@
 
 # TODO: libhipcore, libhipconf, libhipdht and libhiptool have circular
 # dependencies. This needs to be addressed at some point.
-lib_core_libhipcore_la_SOURCES = lib/conf/hipconf.c         \
+lib_core_libhipcore_la_SOURCES = lib/conf/conf.c            \
                                  lib/core/builder.c         \
                                  lib/core/certtools.c       \
                                  lib/core/crypto.c          \

=== modified file 'doc/HACKING'
--- doc/HACKING 2010-04-15 17:24:21 +0000
+++ doc/HACKING 2010-04-29 14:59:33 +0000
@@ -1464,13 +1464,13 @@
 
 Assume that you want to add an action named as 'NEWACT'.
 
-1.1. ACTION_NEWACT in lib/conf/hipconf.h
-----------------------------------------
+1.1. ACTION_NEWACT in lib/conf/conf.h
+-------------------------------------
 Define a constant ACTION_NEWACT which has value between 0 and ACTION_MAX.
 Probably you also need to increase the value of ACTION_MAX.
 
-1.2. hip_conf_get_action() in lib/conf/hipconf.c
-------------------------------------------------
+1.2. hip_conf_get_action() in lib/conf/conf.c
+---------------------------------------------
 Add a proper sentence in the strcmp() series, like that:
 
     ...
@@ -1478,12 +1478,12 @@
         ret = ACTION_NEWACT;
     ...
 
-1.3. hip_conf_check_action_argc() in lib/conf/hipconf.c
--------------------------------------------------------
+1.3. hip_conf_check_action_argc() in lib/conf/conf.c
+----------------------------------------------------
 Add a case block for your ACTION_NEWACT constant in the switch(action) block.
 
-1.4. hip_conf_get_type_arg() in lib/conf/hipconf.c
---------------------------------------------------
+1.4. hip_conf_get_type_arg() in lib/conf/conf.c
+-----------------------------------------------
 Add a case block for your ACTION_NEWACT constant in the switch(action) block.
 
 2.1. HIP_MSG_NEWMODE in lib/conf/icomm.h
@@ -1500,14 +1500,14 @@
 Add a case block for your HIP_MSG_NEWMODE constant in the switch(msg_type) 
block.
 In this case, you just need to return the same string as the constant.
 
-3.1. action_handler[] in lib/conf/hipconf.c
--------------------------------------------
+3.1. action_handler[] in lib/conf/conf.c
+----------------------------------------
 Add a handler function for your new action in the action_handler[] array.
 NOTE: the location and the order of these handlers are important, because
 each entry of the handler array is to be accessed via type index.
 
-3.2. TYPE_NEWTYPE in lib/conf/hipconf.h
----------------------------------------
+3.2. TYPE_NEWTYPE in lib/conf/conf.h
+------------------------------------
 Define a constant TYPE_NEWTYPE which has value between 0 and TYPE_MAX.
 Probably you also need to increase the value of TYPE_MAX.
 
@@ -1519,15 +1519,15 @@
 each handler function in action_handler[], which you just added above
 at the step 3.1.
 
-3.3. hip_conf_handle_NEWACT() in lib/conf/hipconf.c
----------------------------------------------------
-Define a handler function added above at the step 3.1, somewhere in hipconf.c.
+3.3. hip_conf_handle_NEWACT() in lib/conf/conf.c
+------------------------------------------------
+Define a handler function added above at the step 3.1, somewhere in conf.c.
 
-3.4. hip_conf_handle_NEWACT() in lib/conf/hipconf.h
----------------------------------------------------
+3.4. hip_conf_handle_NEWACT() in lib/conf/conf.h
+------------------------------------------------
 Declare a prototype for your new handler function hip_conf_handle_NEWACT
 defined above at the step 3.1.
 
-4. hipconf_usage in lib/conf/hipconf.c
---------------------------------------
+4. hipconf_usage in lib/conf/conf.c
+-----------------------------------
 Add a simple usage for your new action in the usage string.

=== modified file 'hipd/hipd.h'
--- hipd/hipd.h 2010-04-22 10:12:54 +0000
+++ hipd/hipd.h 2010-04-29 14:59:33 +0000
@@ -25,7 +25,7 @@
 #include "user.h"
 #include "lib/core/debug.h"
 #include "netdev.h"
-#include "lib/conf/hipconf.h"
+#include "lib/conf/conf.h"
 #include "nat.h"
 #include "init.h"
 #include "hidb.h"

=== modified file 'hipd/hit_to_ip.c'
--- hipd/hit_to_ip.c    2010-04-09 15:20:38 +0000
+++ hipd/hit_to_ip.c    2010-04-29 14:59:33 +0000
@@ -22,7 +22,7 @@
 #include "lib/core/debug.h"
 #include "lib/core/prefix.h"
 #include "maintenance.h"
-#include "lib/conf/hipconf.h"
+#include "lib/conf/conf.h"
 
 //  value to return by the function
 #define ERR -1

=== modified file 'hipd/init.h'
--- hipd/init.h 2010-04-22 10:12:54 +0000
+++ hipd/init.h 2010-04-29 14:59:33 +0000
@@ -16,7 +16,7 @@
 #include <sys/utsname.h>
 
 #include "lib/tool/xfrmapi.h"
-#include "lib/conf/hipconf.h"
+#include "lib/conf/conf.h"
 #include "oppipdb.h"
 #include "lib/core/debug.h"
 #include "hiprelay.h"

=== modified file 'hipd/netdev.c'
--- hipd/netdev.c       2010-04-16 18:40:18 +0000
+++ hipd/netdev.c       2010-04-29 14:59:33 +0000
@@ -35,7 +35,7 @@
 #include "lib/dht/libhipdht.h"
 #include "lib/core/debug.h"
 #include "lib/tool/lutil.h"
-#include "lib/conf/hipconf.h"
+#include "lib/conf/conf.h"
 #include "lib/core/hostsfiles.h"
 #include "lib/core/hip_udp.h"
 #include "lib/core/hit.h"

=== modified file 'lib/core/debug.c'
--- lib/core/debug.c    2010-04-15 16:57:50 +0000
+++ lib/core/debug.c    2010-04-29 14:59:33 +0000
@@ -52,7 +52,7 @@
 #include "debug.h"
 #include "straddr.h"
 #include "lib/tool/lutil.h"
-#include "lib/conf/hipconf.h"
+#include "lib/conf/conf.h"
 
 /* must be in the same order as enum debug_level (straight mapping) */
 const int debug2syslog_map[] = { LOG_ALERT,

=== modified file 'lib/core/hostsfiles.h'
--- lib/core/hostsfiles.h       2010-04-22 10:12:54 +0000
+++ lib/core/hostsfiles.h       2010-04-29 14:59:33 +0000
@@ -8,7 +8,7 @@
 #define HIP_LIB_CORE_HOSTSFILES_H
 
 #include "prefix.h"
-#include "lib/conf/hipconf.h"
+#include "lib/conf/conf.h"
 
 int hip_map_first_id_to_hostname_from_hosts(const struct hosts_file_line 
*entry,
                                             const void *arg,

=== modified file 'lib/core/message.h'
--- lib/core/message.h  2010-04-22 10:12:54 +0000
+++ lib/core/message.h  2010-04-29 14:59:33 +0000
@@ -17,7 +17,7 @@
 #include "lib/tool/nlink.h"
 #include "debug.h"
 #include "icomm.h"
-#include "lib/conf/hipconf.h"
+#include "lib/conf/conf.h"
 
 #define HIP_DEFAULT_MSG_TIMEOUT 4000000000ul /* nanosecs */
 

=== modified file 'lib/gui/tools.c'
--- lib/gui/tools.c     2010-04-16 00:47:16 +0000
+++ lib/gui/tools.c     2010-04-29 14:59:33 +0000
@@ -27,7 +27,7 @@
 #include "agent/tools.h"
 #include "agent/str_var.h"
 #include "agent/language.h"
-#include "lib/conf/hipconf.h"
+#include "lib/conf/conf.h"
 #include "lib/core/debug.h"
 #include "lib/core/ife.h"
 

=== modified file 'lib/tool/lutil.c'
--- lib/tool/lutil.c    2010-04-16 01:30:31 +0000
+++ lib/tool/lutil.c    2010-04-29 14:59:33 +0000
@@ -9,7 +9,7 @@
  */
 
 #include "lutil.h"
-#include "lib/conf/hipconf.h"
+#include "lib/conf/conf.h"
 
 /**
  * Read characters to a buffer from a file. Works like fgets() but

=== modified file 'tools/hipconf.c'
--- tools/hipconf.c     2010-04-28 16:11:09 +0000
+++ tools/hipconf.c     2010-04-29 14:59:33 +0000
@@ -8,7 +8,7 @@
  */
 #include "lib/core/ife.h"
 #include "lib/core/debug.h"
-#include "lib/conf/hipconf.h"
+#include "lib/conf/conf.h"
 
 /**
  * Sets system log type and calls hipconf with command line arguments.

Other related posts:

  • » [hipl-commit] [trunk] Rev 4441: Rename lib/conf/hipconf.[ch] => lib/conf/conf.[ch]. - Diego Biurrun