X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=ndmp-src%2Fndmp4_translate.h;fp=ndmp-src%2Fndmp4_translate.h;h=1c5e32834803d87d140dbdbd02ce43d89c8e695b;hb=538ae376635af705ebcd686f3b4b7b72a6652985;hp=0000000000000000000000000000000000000000;hpb=11425c69eb58b6103beb68adc13912735ba36975;p=debian%2Famanda diff --git a/ndmp-src/ndmp4_translate.h b/ndmp-src/ndmp4_translate.h new file mode 100644 index 0000000..1c5e328 --- /dev/null +++ b/ndmp-src/ndmp4_translate.h @@ -0,0 +1,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 */