Blame ndmp-src/ndmp2_translate.h

Packit Service 392537
/*
Packit Service 392537
 * Copyright (c) 2000
Packit Service 392537
 *	Traakan, Inc., Los Altos, CA
Packit Service 392537
 *	All rights reserved.
Packit Service 392537
 *
Packit Service 392537
 * Redistribution and use in source and binary forms, with or without
Packit Service 392537
 * modification, are permitted provided that the following conditions
Packit Service 392537
 * are met:
Packit Service 392537
 * 1. Redistributions of source code must retain the above copyright
Packit Service 392537
 *    notice unmodified, this list of conditions, and the following
Packit Service 392537
 *    disclaimer.
Packit Service 392537
 * 2. Redistributions in binary form must reproduce the above copyright
Packit Service 392537
 *    notice, this list of conditions and the following disclaimer in the
Packit Service 392537
 *    documentation and/or other materials provided with the distribution.
Packit Service 392537
 *
Packit Service 392537
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
Packit Service 392537
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Packit Service 392537
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
Packit Service 392537
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
Packit Service 392537
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Packit Service 392537
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
Packit Service 392537
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
Packit Service 392537
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
Packit Service 392537
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
Packit Service 392537
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
Packit Service 392537
 * SUCH DAMAGE.
Packit Service 392537
 */
Packit Service 392537
Packit Service 392537
/*
Packit Service 392537
 * Project:  NDMJOB
Packit Service 392537
 * Ident:    $Id: $
Packit Service 392537
 *
Packit Service 392537
 * Description:
Packit Service 392537
 *
Packit Service 392537
 */
Packit Service 392537
Packit Service 392537
Packit Service 392537
#ifndef NDMOS_OPTION_NO_NDMP2
Packit Service 392537
extern int	ndmp_2to9_error (
Packit Service 392537
			ndmp2_error *error2,
Packit Service 392537
			ndmp9_error *error9);
Packit Service 392537
extern int	ndmp_9to2_error (
Packit Service 392537
			ndmp9_error *error9,
Packit Service 392537
			ndmp2_error *error2);
Packit Service 392537
Packit Service 392537
extern int	ndmp_2to9_data_get_state_reply (
Packit Service 392537
			ndmp2_data_get_state_reply *reply2,
Packit Service 392537
			ndmp9_data_get_state_reply *reply9);
Packit Service 392537
extern int	ndmp_9to2_data_get_state_reply (
Packit Service 392537
			ndmp9_data_get_state_reply *reply9,
Packit Service 392537
			ndmp2_data_get_state_reply *reply2);
Packit Service 392537
Packit Service 392537
extern int	ndmp_2to9_tape_get_state_reply (
Packit Service 392537
			ndmp2_tape_get_state_reply *reply2,
Packit Service 392537
			ndmp9_tape_get_state_reply *reply9);
Packit Service 392537
extern int	ndmp_9to2_tape_get_state_reply (
Packit Service 392537
			ndmp9_tape_get_state_reply *reply9,
Packit Service 392537
			ndmp2_tape_get_state_reply *reply2);
Packit Service 392537
Packit Service 392537
extern int	ndmp_2to9_mover_get_state_reply (
Packit Service 392537
			ndmp2_mover_get_state_reply *reply2,
Packit Service 392537
			ndmp9_mover_get_state_reply *reply9);
Packit Service 392537
extern int	ndmp_9to2_mover_get_state_reply (
Packit Service 392537
			ndmp9_mover_get_state_reply *reply9,
Packit Service 392537
			ndmp2_mover_get_state_reply *reply2);
Packit Service 392537
Packit Service 392537
extern int	ndmp_2to9_mover_addr (
Packit Service 392537
			ndmp2_mover_addr *addr2,
Packit Service 392537
			ndmp9_addr *addr9);
Packit Service 392537
extern int	ndmp_9to2_mover_addr (
Packit Service 392537
			ndmp9_addr *addr9,
Packit Service 392537
			ndmp2_mover_addr *addr2);
Packit Service 392537
Packit Service 392537
extern int	ndmp_2to9_unix_file_stat (
Packit Service 392537
			ndmp2_unix_file_stat *fstat2,
Packit Service 392537
			ndmp9_file_stat *fstat9);
Packit Service 392537
extern int	ndmp_9to2_unix_file_stat (
Packit Service 392537
			ndmp9_file_stat *fstat9,
Packit Service 392537
			ndmp2_unix_file_stat *fstat2);
Packit Service 392537
Packit Service 392537
extern int	ndmp_2to9_pval (
Packit Service 392537
			ndmp2_pval *pval2,
Packit Service 392537
			ndmp9_pval *pval9);
Packit Service 392537
extern int	ndmp_9to2_pval (
Packit Service 392537
			ndmp9_pval *pval9,
Packit Service 392537
			ndmp2_pval *pval2);
Packit Service 392537
Packit Service 392537
extern int	ndmp_2to9_pval_vec (
Packit Service 392537
			ndmp2_pval *pval2,
Packit Service 392537
			ndmp9_pval *pval9,
Packit Service 392537
			unsigned n_pval);
Packit Service 392537
extern int	ndmp_9to2_pval_vec (
Packit Service 392537
			ndmp9_pval *pval9,
Packit Service 392537
			ndmp2_pval *pval2,
Packit Service 392537
			unsigned n_pval);
Packit Service 392537
Packit Service 392537
extern int	ndmp_2to9_name (
Packit Service 392537
			ndmp2_name *name2,
Packit Service 392537
			ndmp9_name *name9);
Packit Service 392537
extern int	ndmp_9to2_name (
Packit Service 392537
			ndmp9_name *name9,
Packit Service 392537
			ndmp2_name *name2);
Packit Service 392537
Packit Service 392537
extern int	ndmp_2to9_name_vec (
Packit Service 392537
			ndmp2_name *name2,
Packit Service 392537
			ndmp9_name *name9,
Packit Service 392537
			unsigned n_name);
Packit Service 392537
extern int	ndmp_9to2_name_vec (
Packit Service 392537
			ndmp9_name *name9,
Packit Service 392537
			ndmp2_name *name2,
Packit Service 392537
			unsigned n_name);
Packit Service 392537
Packit Service 392537
extern struct reqrep_xlate		ndmp2_reqrep_xlate_table[];
Packit Service 392537
Packit Service 392537
#endif /* !NDMOS_OPTION_NO_NDMP2 */