DPDK  16.04.0
Functions
cmdline.h File Reference
#include <termios.h>
#include <cmdline_rdline.h>

Go to the source code of this file.

Functions

int cmdline_poll (struct cmdline *cl)

Detailed Description

Command line API

Definition in file cmdline.h.

Function Documentation

int cmdline_poll ( struct cmdline *  cl)

This function is nonblocking equivalent of cmdline_interact(). It polls cl for one character and interpret it. If return value is RDLINE_EXITED it mean that cmdline_quit() was invoked.

Parameters
clThe command line object.
Returns
On success return object status - one of enum rdline_status. On error return negative value.
Examples:
ip_pipeline/pipeline/pipeline_master_be.c.