1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/examples/ndn-ping/main.c
2018-05-24 10:58:26 +02:00

44 lines
882 B
C

/*
* Copyright (C) 2016 Wentao Shang
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup examples
* @{
*
* @file
* @brief NDN ping application
*
* @author Wentao Shang <wentaoshang@gmail.com>
*
* @}
*/
#include <stdio.h>
#include "ndn-riot/ndn.h"
#include "shell.h"
#include "msg.h"
extern int ndn_ping(int argc, char **argv);
static const shell_command_t shell_commands[] = {
{ "ndnping", "start ndn-ping client and server", ndn_ping },
{ NULL, NULL, NULL }
};
int main(void)
{
/* start shell */
puts("All up, running the shell now");
char line_buf[SHELL_DEFAULT_BUFSIZE];
shell_run(shell_commands, line_buf, SHELL_DEFAULT_BUFSIZE);
/* should be never reached */
return 0;
}