File: ndmp4_translate.h

package info (click to toggle)
amanda 1%3A3.3.6-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 24,988 kB
  • ctags: 28,823
  • sloc: ansic: 225,464; perl: 60,684; sh: 16,930; xml: 14,417; makefile: 2,269; awk: 431; lex: 405; yacc: 342; tcl: 118; sql: 19; sed: 16; php: 2
file content (119 lines) | stat: -rw-r--r-- 3,550 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/*
 * Copyright (c) 2000
 *	Traakan, Inc., Los Altos, CA
 *	All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice unmodified, this list of conditions, and the following
 *    disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */

/*
 * Project:  NDMJOB
 * Ident:    $Id: $
 *
 * Description:
 *
 */




#ifndef NDMOS_OPTION_NO_NDMP4
extern int	ndmp_4to9_error (
			ndmp4_error *error4,
			ndmp9_error *error9);
extern int	ndmp_9to4_error (
			ndmp9_error *error9,
			ndmp4_error *error4);

extern int	ndmp_4to9_data_get_state_reply (
			ndmp4_data_get_state_reply *reply4,
			ndmp9_data_get_state_reply *reply9);
extern int	ndmp_9to4_data_get_state_reply (
			ndmp9_data_get_state_reply *reply9,
			ndmp4_data_get_state_reply *reply4);

extern int	ndmp_4to9_tape_get_state_reply (
			ndmp4_tape_get_state_reply *reply4,
			ndmp9_tape_get_state_reply *reply9);
extern int	ndmp_9to4_tape_get_state_reply (
			ndmp9_tape_get_state_reply *reply9,
			ndmp4_tape_get_state_reply *reply4);

extern int	ndmp_4to9_mover_get_state_reply (
			ndmp4_mover_get_state_reply *reply4,
			ndmp9_mover_get_state_reply *reply9);
extern int	ndmp_9to4_mover_get_state_reply (
			ndmp9_mover_get_state_reply *reply9,
			ndmp4_mover_get_state_reply *reply4);

extern int	ndmp_4to9_addr (
			ndmp4_addr *addr4,
			ndmp9_addr *addr9);
extern int	ndmp_9to4_addr (
			ndmp9_addr *addr9,
			ndmp4_addr *addr4);

extern int	ndmp_4to9_file_stat (
			ndmp4_file_stat *fstat4,
			ndmp9_file_stat *fstat9,
			ndmp9_u_quad node,
			ndmp9_u_quad fh_info);
extern int	ndmp_9to4_file_stat (
			ndmp9_file_stat *fstat9,
			ndmp4_file_stat *fstat4);

extern int	ndmp_4to9_pval (
			ndmp4_pval *pval4,
			ndmp9_pval *pval9);
extern int	ndmp_9to4_pval (
			ndmp9_pval *pval9,
			ndmp4_pval *pval4);

extern int	ndmp_4to9_pval_vec (
			ndmp4_pval *pval4,
			ndmp9_pval *pval9,
			unsigned n_pval);
extern int	ndmp_9to4_pval_vec (
			ndmp9_pval *pval9,
			ndmp4_pval *pval4,
			unsigned n_pval);

extern int	ndmp_4to9_name (
			ndmp4_name *name4,
			ndmp9_name *name9);
extern int	ndmp_9to4_name (
			ndmp9_name *name9,
			ndmp4_name *name4);

extern int	ndmp_4to9_name_vec (
			ndmp4_name *name4,
			ndmp9_name *name9,
			unsigned n_name);
extern int	ndmp_9to4_name_vec (
			ndmp9_name *name9,
			ndmp4_name *name4,
			unsigned n_name);

extern struct reqrep_xlate		ndmp4_reqrep_xlate_table[];

#endif /* !NDMOS_OPTION_NO_NDMP4 */