2 * WCMD - Wine-compatible command line interface.
4 * Copyright (C) 1999 D A Pickles
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
36 void WCMD_batch (char *, char *, int);
37 void WCMD_change_tty (void);
38 void WCMD_clear_screen (void);
39 void WCMD_copy (void);
40 void WCMD_create_dir (void);
41 void WCMD_delete (int recurse
);
42 void WCMD_directory (void);
43 void WCMD_echo (const char *);
44 void WCMD_enter_paged_mode(void);
45 void WCMD_for (char *);
46 void WCMD_give_help (char *command
);
47 void WCMD_goto (void);
48 void WCMD_if (char *);
49 void WCMD_leave_paged_mode(void);
50 void WCMD_move (void);
51 void WCMD_output (const char *format
, ...);
52 void WCMD_output_asis (const char *message
);
53 void WCMD_parse (char *s
, char *q
, char *p1
, char *p2
);
54 void WCMD_pause (void);
55 void WCMD_pipe (char *command
);
56 void WCMD_print_error (void);
57 void WCMD_process_command (char *command
);
58 int WCMD_read_console (char *string
, int str_len
);
59 void WCMD_remove_dir (void);
60 void WCMD_rename (void);
61 void WCMD_run_program (char *command
);
62 void WCMD_setshow_attrib (void);
63 void WCMD_setshow_date (void);
64 void WCMD_setshow_default (void);
65 void WCMD_setshow_env (char *command
);
66 void WCMD_setshow_path (char *command
);
67 void WCMD_setshow_prompt (void);
68 void WCMD_setshow_time (void);
69 void WCMD_shift (void);
70 void WCMD_show_prompt (void);
71 void WCMD_title (char *);
72 void WCMD_type (void);
73 void WCMD_verify (char *command
);
74 void WCMD_version (void);
75 int WCMD_volume (int mode
, char *command
);
77 char *WCMD_fgets (char *s
, int n
, HANDLE stream
);
78 char *WCMD_parameter (char *s
, int n
, char **where
);
79 char *WCMD_strtrim_leading_spaces (char *string
);
80 void WCMD_strtrim_trailing_spaces (char *string
);
82 /* Data structure to hold context when executing batch files */
85 char *command
; /* The command which invoked the batch file */
86 HANDLE h
; /* Handle to the open batch file */
87 int shift_count
; /* Number of SHIFT commands executed */
88 void *prev_context
; /* Pointer to the previous context block */
91 #endif /* !RC_INVOKED */
94 * Serial nos of builtin commands. These constants must be in step with
95 * the list of strings defined in WCMD.C, and WCMD_EXIT *must* always be
98 * Yes it *would* be nice to use an enumeration here, but the Resource
99 * Compiler won't accept resource IDs from enumerations :-(
102 #define WCMD_ATTRIB 0
113 #define WCMD_ERASE 11
118 #define WCMD_LABEL 16
120 #define WCMD_MKDIR 18
123 #define WCMD_PAUSE 21
124 #define WCMD_PROMPT 22
127 #define WCMD_RENAME 25
129 #define WCMD_RMDIR 27
131 #define WCMD_SHIFT 29
133 #define WCMD_TITLE 31
135 #define WCMD_VERIFY 33
139 /* Must be last in list */