File: command.h

package info (click to toggle)
mc 4.1.35-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 6,924 kB
  • ctags: 9,665
  • sloc: ansic: 84,273; tcl: 1,779; makefile: 1,266; sh: 864; perl: 262; awk: 148; sed: 93; csh: 1
file content (18 lines) | stat: -rw-r--r-- 327 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef __COMMAND_H
#define __COMMAND_H

typedef struct {
    WInput input;
    callback_fn old_callback;
} WCommand;

WCommand *command_new (int y, int x, int len);

/* Return the Input * from a WCommand */
#define input_w(x) (&(x->input))

extern WCommand *cmdline;

void do_cd_command (char *cmd);

#endif /* __COMMAND_H */