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_NDMP3
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
44 extern int ndmp_3to9_error(ndmp3_error* error3, ndmp9_error* error9);
45 extern int ndmp_9to3_error(ndmp9_error* error9, ndmp3_error* error3);
46 
47 extern int ndmp_3to9_data_get_state_reply(ndmp3_data_get_state_reply* reply3,
48                                           ndmp9_data_get_state_reply* reply9);
49 extern int ndmp_9to3_data_get_state_reply(ndmp9_data_get_state_reply* reply9,
50                                           ndmp3_data_get_state_reply* reply3);
51 
52 extern int ndmp_3to9_tape_get_state_reply(ndmp3_tape_get_state_reply* reply3,
53                                           ndmp9_tape_get_state_reply* reply9);
54 extern int ndmp_9to3_tape_get_state_reply(ndmp9_tape_get_state_reply* reply9,
55                                           ndmp3_tape_get_state_reply* reply3);
56 
57 extern int ndmp_3to9_mover_get_state_reply(ndmp3_mover_get_state_reply* reply3,
58                                            ndmp9_mover_get_state_reply* reply9);
59 extern int ndmp_9to3_mover_get_state_reply(ndmp9_mover_get_state_reply* reply9,
60                                            ndmp3_mover_get_state_reply* reply3);
61 
62 extern int ndmp_3to9_addr(ndmp3_addr* addr3, ndmp9_addr* addr9);
63 extern int ndmp_9to3_addr(ndmp9_addr* addr9, ndmp3_addr* addr3);
64 
65 extern int ndmp_3to9_file_stat(ndmp3_file_stat* fstat3,
66                                ndmp9_file_stat* fstat9,
67                                ndmp9_u_quad node,
68                                ndmp9_u_quad fh_info);
69 extern int ndmp_9to3_file_stat(ndmp9_file_stat* fstat9,
70                                ndmp3_file_stat* fstat3);
71 
72 extern int ndmp_3to9_pval(ndmp3_pval* pval3, ndmp9_pval* pval9);
73 extern int ndmp_9to3_pval(ndmp9_pval* pval9, ndmp3_pval* pval3);
74 
75 extern int ndmp_3to9_pval_vec(ndmp3_pval* pval3,
76                               ndmp9_pval* pval9,
77                               unsigned n_pval);
78 extern int ndmp_9to3_pval_vec(ndmp9_pval* pval9,
79                               ndmp3_pval* pval3,
80                               unsigned n_pval);
81 
82 extern int ndmp_3to9_name(ndmp3_name* name3, ndmp9_name* name9);
83 extern int ndmp_9to3_name(ndmp9_name* name9, ndmp3_name* name3);
84 
85 extern int ndmp_3to9_name_vec(ndmp3_name* name3,
86                               ndmp9_name* name9,
87                               unsigned n_name);
88 extern int ndmp_9to3_name_vec(ndmp9_name* name9,
89                               ndmp3_name* name3,
90                               unsigned n_name);
91 
92 extern struct reqrep_xlate ndmp3_reqrep_xlate_table[];
93 
94 #ifdef __cplusplus
95 }
96 #endif
97 #endif /* !NDMOS_OPTION_NO_NDMP3 */
98