summaryrefslogtreecommitdiffstats
path: root/icnet/ccnx/icnet_ccnx_portal.cc
diff options
context:
space:
mode:
authorMauro Sardara <msardara+fdio@cisco.com>2017-03-21 23:52:22 +0100
committerAlberto Compagno <acompagn+fdio@cisco.com>2017-03-22 10:26:36 +0000
commit2d16ddb2623249d3cbdde89288ae047416b62cb6 (patch)
tree9d56493cf776e63609cadb0c958a60681a6e986e /icnet/ccnx/icnet_ccnx_portal.cc
parente1bda5c0821c3aae2e1609ba752fdb9f06a6dfb4 (diff)
Adding android support
Change-Id: Id8d0aaf61e6576209a8e329aa26cb73113832296 Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
Diffstat (limited to 'icnet/ccnx/icnet_ccnx_portal.cc')
-rw-r--r--icnet/ccnx/icnet_ccnx_portal.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/icnet/ccnx/icnet_ccnx_portal.cc b/icnet/ccnx/icnet_ccnx_portal.cc
index 99e2ee7f..33e8c82f 100644
--- a/icnet/ccnx/icnet_ccnx_portal.cc
+++ b/icnet/ccnx/icnet_ccnx_portal.cc
@@ -12,6 +12,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+#ifdef __ANDROID__
+#include <android/log.h>
+#endif
#include "icnet_ccnx_portal.h"
@@ -135,9 +138,17 @@ void Portal::processControlMessage(CCNxMetaMessage *response) {
CCNxControl *control_message = ccnxMetaMessage_GetControl(response);
if (ccnxControl_IsACK(control_message)) {
+#ifdef __ANDROID__
+ __android_log_print(ANDROID_LOG_DEBUG, "libICNet", "Route set correctly!\n");
+#else
std::cout << "Route set correctly!" << std::endl;
+#endif
} else {
+#ifdef __ANDROID__
+ __android_log_print(ANDROID_LOG_DEBUG, "libICNet", "Failed to set the route.\n");
+#else
std::cout << "Failed to set the route." << std::endl;
+#endif
}
}