Changeset 68b5dd11 in mainline for uspace/lib/clui/nchoice.h


Ignore:
Timestamp:
2015-10-20T10:08:15Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b598460a
Parents:
44fe800
Message:

Provide some default options.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/clui/nchoice.h

    r44fe800 r68b5dd11  
    4040#include <tinput.h>
    4141
     42typedef enum {
     43        /** This is the default option */
     44        ncf_default = 1
     45} nchoice_flag_t;
     46
    4247typedef struct {
    4348        /** Link to nchoice_t.opts */
     
    5661        /** Text input */
    5762        tinput_t *tinput;
     63        /** Default option */
     64        nchoice_opt_t *def_opt;
    5865} nchoice_t;
    5966
     
    6168extern void nchoice_destroy(nchoice_t *);
    6269extern int nchoice_set_prompt(nchoice_t *, const char *);
    63 extern int nchoice_add(nchoice_t *, const char *, void *);
     70extern int nchoice_add(nchoice_t *, const char *, void *, nchoice_flag_t);
    6471extern int nchoice_get(nchoice_t *, void **);
    6572
Note: See TracChangeset for help on using the changeset viewer.