2 * Copyright (c) 1998,1999,2000
3 * Traakan, Inc., Los Altos, CA
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
9 * 1. Redistributions of source code must retain the above copyright
10 * notice unmodified, this list of conditions, and the following
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 extern struct ndmp_enum_str_table ndmp9_error_table[];
39 extern char * ndmp9_error_to_str (ndmp9_error val);
40 extern int ndmp9_error_from_str (ndmp9_error *valp, char * str);
41 extern struct ndmp_enum_str_table ndmp9_auth_type_table[];
42 extern char * ndmp9_auth_type_to_str (ndmp9_auth_type val);
43 extern int ndmp9_auth_type_from_str (ndmp9_auth_type *valp, char * str);
44 extern struct ndmp_enum_str_table ndmp9_addr_type_table[];
45 extern char * ndmp9_addr_type_to_str (ndmp9_addr_type val);
46 extern int ndmp9_addr_type_from_str (ndmp9_addr_type *valp, char * str);
47 extern struct ndmp_enum_str_table ndmp9_tape_open_mode_table[];
48 extern char * ndmp9_tape_open_mode_to_str (ndmp9_tape_open_mode val);
49 extern int ndmp9_tape_open_mode_from_str (ndmp9_tape_open_mode *valp, char * str);
50 extern struct ndmp_enum_str_table ndmp9_tape_mtio_op_table[];
51 extern char * ndmp9_tape_mtio_op_to_str (ndmp9_tape_mtio_op val);
52 extern int ndmp9_tape_mtio_op_from_str (ndmp9_tape_mtio_op *valp, char * str);
53 extern struct ndmp_enum_str_table ndmp9_mover_state_table[];
54 extern char * ndmp9_mover_state_to_str (ndmp9_mover_state val);
55 extern int ndmp9_mover_state_from_str (ndmp9_mover_state *valp, char * str);
56 extern struct ndmp_enum_str_table ndmp9_mover_pause_reason_table[];
57 extern char * ndmp9_mover_pause_reason_to_str (ndmp9_mover_pause_reason val);
58 extern int ndmp9_mover_pause_reason_from_str (ndmp9_mover_pause_reason *valp, char * str);
59 extern struct ndmp_enum_str_table ndmp9_mover_halt_reason_table[];
60 extern char * ndmp9_mover_halt_reason_to_str (ndmp9_mover_halt_reason val);
61 extern int ndmp9_mover_halt_reason_from_str (ndmp9_mover_halt_reason *valp, char * str);
62 extern struct ndmp_enum_str_table ndmp9_mover_mode_table[];
63 extern char * ndmp9_mover_mode_to_str (ndmp9_mover_mode val);
64 extern int ndmp9_mover_mode_from_str (ndmp9_mover_mode *valp, char * str);
65 extern struct ndmp_enum_str_table ndmp9_data_operation_table[];
66 extern char * ndmp9_data_operation_to_str (ndmp9_data_operation val);
67 extern int ndmp9_data_operation_from_str (ndmp9_data_operation *valp, char * str);
68 extern struct ndmp_enum_str_table ndmp9_data_state_table[];
69 extern char * ndmp9_data_state_to_str (ndmp9_data_state val);
70 extern int ndmp9_data_state_from_str (ndmp9_data_state *valp, char * str);
71 extern struct ndmp_enum_str_table ndmp9_data_halt_reason_table[];
72 extern char * ndmp9_data_halt_reason_to_str (ndmp9_data_halt_reason val);
73 extern int ndmp9_data_halt_reason_from_str (ndmp9_data_halt_reason *valp, char * str);
74 extern struct ndmp_enum_str_table ndmp9_file_type_table[];
75 extern char * ndmp9_file_type_to_str (ndmp9_file_type val);
76 extern int ndmp9_file_type_from_str (ndmp9_file_type *valp, char * str);