24048
|
1 /* -*- c-basic-offset: 2; indent-tabs-mode: nil -*- */
|
|
2 #ifndef CMD_PRINT_H_INCLUDED
|
|
3 #define CMD_PRINT_H_INCLUDED
|
|
4
|
|
5 /*
|
|
6 * Copyright (C) 2000, 2001, 2002, 2003 Martin Norbäck, Håkan Hjort
|
|
7 *
|
|
8 * This program is free software; you can redistribute it and/or modify
|
|
9 * it under the terms of the GNU General Public License as published by
|
|
10 * the Free Software Foundation; either version 2 of the License, or
|
|
11 * (at your option) any later version.
|
|
12 *
|
|
13 * This program is distributed in the hope that it will be useful,
|
|
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16 * GNU General Public License for more details.
|
|
17 *
|
|
18 * You should have received a copy of the GNU General Public License
|
|
19 * along with this program; if not, write to the Free Software
|
|
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
21 */
|
|
22
|
|
23 #include <dvdread/ifo_types.h>
|
|
24
|
|
25 /**
|
|
26 * Pretty printing of the DVD commands (vm instructions).
|
|
27 */
|
|
28
|
|
29 #ifdef __cplusplus
|
|
30 extern "C" {
|
|
31 #endif
|
|
32
|
|
33 /**
|
|
34 * Prints a text representation of the commands to stdout.
|
|
35 *
|
|
36 * @param command Pointer to the DVD command to be printed.
|
|
37 */
|
|
38 void cmdPrint_mnemonic(vm_cmd_t *command);
|
|
39
|
|
40 /**
|
|
41 * Prints row, then a hex dump of the command followed by the text
|
|
42 * representation of the commands, as given by cmdPrint_mnemonic to
|
|
43 * stdout.
|
|
44 *
|
|
45 * @param command Pointer to the DVD command to be printed. */
|
|
46 void cmdPrint_CMD(int row, vm_cmd_t *command);
|
|
47
|
|
48 #ifdef __cplusplus
|
|
49 };
|
|
50 #endif
|
|
51 #endif /* CMD_PRINT_H_INCLUDED */
|