move global variable definition out of header

moded a global variable definition of a list of strings out
of a header file and replaced it with an accessor function.

this fixes a compile error regarding multiple definitions of
ecm_tracker_connection_state_to_string and
ecm_tracker_sender_state_to_string encountered when trying to
compile a unified version of ECM.

Change-Id: I42c728b1e42f3f1ecbb9b2561e27430d303f7eaa
Signed-off-by: Nicolas Costa <ncosta@codeaurora.org>
diff --git a/ecm_tracker.c b/ecm_tracker.c
index add7d6c..a057799 100644
--- a/ecm_tracker.c
+++ b/ecm_tracker.c
@@ -357,6 +357,23 @@
 	{255, ECM_TRACKER_IP_PROTOCOL_TYPE_UNKNOWN, "255", ecm_tracker_ip_header_helper_unknown}
 };
 
+static char *ecm_tracker_sender_state_strings[] = {
+	"Unknown",
+	"Establishing",
+	"Established",
+	"Closing",
+	"Closed",
+	"Fault"
+};
+
+static char *ecm_tracker_connection_state_strings[] = {
+	"Establishing",
+	"Established",
+	"Closing",
+	"Closed",
+	"Fault"
+};
+
 /*
  * ecm_tracker_ip_check_header_and_read()
  *	Check that we have a complete network-level IPv4 or V6 header, check it and return true if so.
@@ -1054,6 +1071,20 @@
 }
 EXPORT_SYMBOL(ecm_tracker_module_put);
 
+const char *
+ecm_tracker_sender_state_to_string(enum ecm_tracker_sender_states s)
+{
+	return ecm_tracker_sender_state_strings[s];
+}
+EXPORT_SYMBOL(ecm_tracker_sender_state_to_string);
+
+const char *
+ecm_tracker_connection_state_to_string(enum ecm_tracker_connection_states s)
+{
+	return ecm_tracker_connection_state_strings[s];
+}
+EXPORT_SYMBOL(ecm_tracker_connection_state_to_string);
+
 /*
  * ecm_tracker_init()
  */