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