BSP430  20141115
Board Support Package for MSP430 microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Fields
sBSP430cliCompletionHelperStrings Struct Reference

#include <bsp430/utility/cli.h>

Data Fields

sBSP430cliCompletionHelper completion_helper
const char *const * strings
size_t len

Detailed Description

Structure supporting completion based on a static list of acceptable strings.

One of the most common cases for non-command completion is selection among a set of permitted tokens. This structure encodes the necessary information to convey those tokens to vBSP430cliCompletionHelperStrings, which itself should be stored as completion_helper.helper.


Field Documentation

sBSP430cliCompletionHelper sBSP430cliCompletionHelperStrings::completion_helper

The common completion helper data, which should have its sBSP430cliCompletionHelper::helper field set to vBSP430cliCompletionHelperStrings().

size_t sBSP430cliCompletionHelperStrings::len

The number of elements in strings.

const char* const* sBSP430cliCompletionHelperStrings::strings

A pointer to a sequence of pointers to valid strings. Note that it is explicitly permitted for one or more of the contained pointers to be null; those entries are ignored for the purposes of completion.

The documentation for this struct was generated from the following file: