1 /*
2  * Copyright (c) 2000
3  *      Traakan, Inc., Los Altos, CA
4  *      All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions
8  * are met:
9  * 1. Redistributions of source code must retain the above copyright
10  *    notice unmodified, this list of conditions, and the following
11  *    disclaimer.
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.
15  *
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
26  * SUCH DAMAGE.
27  */
28 
29 /*
30  * Project:  NDMJOB
31  * Ident:    $Id: $
32  *
33  * Description:
34  *
35  */
36 
37 
38 #ifndef NDMOS_OPTION_NO_NDMP4
39 
40 extern struct ndmp_enum_str_table ndmp4_error_table[];
41 extern char* ndmp4_error_to_str(ndmp4_error val);
42 extern int ndmp4_error_from_str(ndmp4_error* valp, char* str);
43 extern struct ndmp_enum_str_table ndmp4_header_message_type_table[];
44 extern char* ndmp4_header_message_type_to_str(ndmp4_header_message_type val);
45 extern int ndmp4_header_message_type_from_str(ndmp4_header_message_type* valp,
46                                               char* str);
47 extern struct ndmp_enum_str_table ndmp4_message_table[];
48 extern char* ndmp4_message_to_str(ndmp4_message val);
49 extern int ndmp4_message_from_str(ndmp4_message* valp, char* str);
50 extern struct ndmp_enum_str_table ndmp4_auth_type_table[];
51 extern char* ndmp4_auth_type_to_str(ndmp4_auth_type val);
52 extern int ndmp4_auth_type_from_str(ndmp4_auth_type* valp, char* str);
53 extern struct ndmp_enum_str_table ndmp4_addr_type_table[];
54 extern char* ndmp4_addr_type_to_str(ndmp4_addr_type val);
55 extern int ndmp4_addr_type_from_str(ndmp4_addr_type* valp, char* str);
56 extern struct ndmp_enum_str_table ndmp4_tape_open_mode_table[];
57 extern char* ndmp4_tape_open_mode_to_str(ndmp4_tape_open_mode val);
58 extern int ndmp4_tape_open_mode_from_str(ndmp4_tape_open_mode* valp, char* str);
59 extern struct ndmp_enum_str_table ndmp4_tape_mtio_op_table[];
60 extern char* ndmp4_tape_mtio_op_to_str(ndmp4_tape_mtio_op val);
61 extern int ndmp4_tape_mtio_op_from_str(ndmp4_tape_mtio_op* valp, char* str);
62 extern struct ndmp_enum_str_table ndmp4_mover_state_table[];
63 extern char* ndmp4_mover_state_to_str(ndmp4_mover_state val);
64 extern int ndmp4_mover_state_from_str(ndmp4_mover_state* valp, char* str);
65 extern struct ndmp_enum_str_table ndmp4_mover_pause_reason_table[];
66 extern char* ndmp4_mover_pause_reason_to_str(ndmp4_mover_pause_reason val);
67 extern int ndmp4_mover_pause_reason_from_str(ndmp4_mover_pause_reason* valp,
68                                              char* str);
69 extern struct ndmp_enum_str_table ndmp4_mover_halt_reason_table[];
70 extern char* ndmp4_mover_halt_reason_to_str(ndmp4_mover_halt_reason val);
71 extern int ndmp4_mover_halt_reason_from_str(ndmp4_mover_halt_reason* valp,
72                                             char* str);
73 extern struct ndmp_enum_str_table ndmp4_mover_mode_table[];
74 extern char* ndmp4_mover_mode_to_str(ndmp4_mover_mode val);
75 extern int ndmp4_mover_mode_from_str(ndmp4_mover_mode* valp, char* str);
76 extern struct ndmp_enum_str_table ndmp4_data_operation_table[];
77 extern char* ndmp4_data_operation_to_str(ndmp4_data_operation val);
78 extern int ndmp4_data_operation_from_str(ndmp4_data_operation* valp, char* str);
79 extern struct ndmp_enum_str_table ndmp4_data_state_table[];
80 extern char* ndmp4_data_state_to_str(ndmp4_data_state val);
81 extern int ndmp4_data_state_from_str(ndmp4_data_state* valp, char* str);
82 extern struct ndmp_enum_str_table ndmp4_data_halt_reason_table[];
83 extern char* ndmp4_data_halt_reason_to_str(ndmp4_data_halt_reason val);
84 extern int ndmp4_data_halt_reason_from_str(ndmp4_data_halt_reason* valp,
85                                            char* str);
86 extern struct ndmp_enum_str_table ndmp4_connection_status_reason_table[];
87 extern char* ndmp4_connection_status_reason_to_str(
88     ndmp4_connection_status_reason val);
89 extern int ndmp4_connection_status_reason_from_str(
90     ndmp4_connection_status_reason* valp,
91     char* str);
92 extern struct ndmp_enum_str_table ndmp4_log_type_table[];
93 extern char* ndmp4_log_type_to_str(ndmp4_log_type val);
94 extern int ndmp4_log_type_from_str(ndmp4_log_type* valp, char* str);
95 extern struct ndmp_enum_str_table ndmp4_fs_type_table[];
96 extern char* ndmp4_fs_type_to_str(ndmp4_fs_type val);
97 extern int ndmp4_fs_type_from_str(ndmp4_fs_type* valp, char* str);
98 extern struct ndmp_enum_str_table ndmp4_file_type_table[];
99 extern char* ndmp4_file_type_to_str(ndmp4_file_type val);
100 extern int ndmp4_file_type_from_str(ndmp4_file_type* valp, char* str);
101 extern struct ndmp_enum_str_table ndmp4_recovery_status_table[];
102 extern char* ndmp4_recovery_status_to_str(ndmp4_recovery_status val);
103 extern int ndmp4_recovery_status_from_str(ndmp4_recovery_status* valp,
104                                           char* str);
105 
106 #endif /* !NDMOS_OPTION_NO_NDMP4 */
107