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, char *str);
46 extern struct ndmp_enum_str_table ndmp4_message_table[];
47 extern char * ndmp4_message_to_str (ndmp4_message val);
48 extern int    ndmp4_message_from_str (ndmp4_message *valp, char *str);
49 extern struct ndmp_enum_str_table ndmp4_auth_type_table[];
50 extern char * ndmp4_auth_type_to_str (ndmp4_auth_type val);
51 extern int    ndmp4_auth_type_from_str (ndmp4_auth_type *valp, char *str);
52 extern struct ndmp_enum_str_table ndmp4_addr_type_table[];
53 extern char * ndmp4_addr_type_to_str (ndmp4_addr_type val);
54 extern int    ndmp4_addr_type_from_str (ndmp4_addr_type *valp, char *str);
55 extern struct ndmp_enum_str_table ndmp4_tape_open_mode_table[];
56 extern char * ndmp4_tape_open_mode_to_str (ndmp4_tape_open_mode val);
57 extern int    ndmp4_tape_open_mode_from_str (ndmp4_tape_open_mode *valp, char *str);
58 extern struct ndmp_enum_str_table ndmp4_tape_mtio_op_table[];
59 extern char * ndmp4_tape_mtio_op_to_str (ndmp4_tape_mtio_op val);
60 extern int    ndmp4_tape_mtio_op_from_str (ndmp4_tape_mtio_op *valp, char *str);
61 extern struct ndmp_enum_str_table ndmp4_mover_state_table[];
62 extern char * ndmp4_mover_state_to_str (ndmp4_mover_state val);
63 extern int    ndmp4_mover_state_from_str (ndmp4_mover_state *valp, char *str);
64 extern struct ndmp_enum_str_table ndmp4_mover_pause_reason_table[];
65 extern char * ndmp4_mover_pause_reason_to_str (ndmp4_mover_pause_reason val);
66 extern int    ndmp4_mover_pause_reason_from_str (ndmp4_mover_pause_reason *valp, char *str);
67 extern struct ndmp_enum_str_table ndmp4_mover_halt_reason_table[];
68 extern char * ndmp4_mover_halt_reason_to_str (ndmp4_mover_halt_reason val);
69 extern int    ndmp4_mover_halt_reason_from_str (ndmp4_mover_halt_reason *valp, char *str);
70 extern struct ndmp_enum_str_table ndmp4_mover_mode_table[];
71 extern char * ndmp4_mover_mode_to_str (ndmp4_mover_mode val);
72 extern int    ndmp4_mover_mode_from_str (ndmp4_mover_mode *valp, char *str);
73 extern struct ndmp_enum_str_table ndmp4_data_operation_table[];
74 extern char * ndmp4_data_operation_to_str (ndmp4_data_operation val);
75 extern int    ndmp4_data_operation_from_str (ndmp4_data_operation *valp, char *str);
76 extern struct ndmp_enum_str_table ndmp4_data_state_table[];
77 extern char * ndmp4_data_state_to_str (ndmp4_data_state val);
78 extern int    ndmp4_data_state_from_str (ndmp4_data_state *valp, char *str);
79 extern struct ndmp_enum_str_table ndmp4_data_halt_reason_table[];
80 extern char * ndmp4_data_halt_reason_to_str (ndmp4_data_halt_reason val);
81 extern int    ndmp4_data_halt_reason_from_str (ndmp4_data_halt_reason *valp, char *str);
82 extern struct ndmp_enum_str_table ndmp4_connection_status_reason_table[];
83 extern char * ndmp4_connection_status_reason_to_str (ndmp4_connection_status_reason val);
84 extern int    ndmp4_connection_status_reason_from_str (ndmp4_connection_status_reason *valp, char *str);
85 extern struct ndmp_enum_str_table ndmp4_log_type_table[];
86 extern char * ndmp4_log_type_to_str (ndmp4_log_type val);
87 extern int    ndmp4_log_type_from_str (ndmp4_log_type *valp, char *str);
88 extern struct ndmp_enum_str_table ndmp4_fs_type_table[];
89 extern char * ndmp4_fs_type_to_str (ndmp4_fs_type val);
90 extern int    ndmp4_fs_type_from_str (ndmp4_fs_type *valp, char *str);
91 extern struct ndmp_enum_str_table ndmp4_file_type_table[];
92 extern char * ndmp4_file_type_to_str (ndmp4_file_type val);
93 extern int    ndmp4_file_type_from_str (ndmp4_file_type *valp, char *str);
94 extern struct ndmp_enum_str_table ndmp4_recovery_status_table[];
95 extern char * ndmp4_recovery_status_to_str (ndmp4_recovery_status val);
96 extern int    ndmp4_recovery_status_from_str (ndmp4_recovery_status *valp, char *str);
97 
98 #endif /* !NDMOS_OPTION_NO_NDMP4 */
99