Committer: Diego Biurrun <diego@xxxxxxxxxx> Date: 16/03/2010 at 18:26:01 Revision: 3964 Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: trunk Log: Conditionally declare functions related to opportunistic mode. The declaration in the header should reflect the conditions in the C file. Modified: M hipd/accessor.h === modified file 'hipd/accessor.h' --- hipd/accessor.h 2010-03-16 15:22:29 +0000 +++ hipd/accessor.h 2010-03-16 16:23:59 +0000 @@ -6,6 +6,7 @@ #include <openssl/des.h> #include <sys/time.h> +#include "config.h" #include "lib/core/hashtable.h" /** @addtogroup daemon_states @@ -43,6 +44,7 @@ void hipd_set_flag(unsigned int); int hip_agent_is_alive(void); +#ifdef CONFIG_HIP_OPPORTUNISTIC int hip_get_opportunistic_tcp_status(void); int hip_set_opportunistic_mode(struct hip_common *msg); int hip_query_opportunistic_mode(struct hip_common *msg); @@ -52,6 +54,7 @@ int hip_get_hi3_status(void); void hip_set_hi3_status(struct hip_common *msg); #endif /* CONFIG_HIP_I3 */ +#endif /* CONFIG_HIP_OPPORTUNISTIC */ int hip_get_hip_proxy_status(void); int hip_set_hip_proxy_on(void);