/*****************************************************************************
 * Copyright Gemalto, unpublished work, created 2015. This computer program
 * includes Confidential, Proprietary Information and is a Trade Secret of
 * Gemalto. All use, disclosure, and/or reproduction is prohibited unless
 * authorised in writing by an officer of Gemalto. All Rights Reserved.
 *
 * Gemalto licenses this file to you under the secESE Gemalto License.
 * See NOTICE file for more information regarding copyright ownership.
 * A copy of secESE Gemalto License is available in LICENSE file included in
 * source code distribution of secESE Gemalto. You can ask a copy of the
 * License by contacting Gemalto (http://www.gemalto.com).
 ****************************************************************************/

/**
 * @file
 * $Author$
 * $Revision$
 * $Date$
 *
 * Interface to transport to transparently send/receive data.
 *
 */

#ifndef TRANSPORT_H
#define TRANSPORT_H

struct se_gto_ctx;
struct t1_state;

int transport_setup(struct se_gto_ctx *ctx);
int transport_teardown(struct se_gto_ctx *ctx);
int block_send(struct t1_state *t1, const void *block, size_t n);
int block_recv(struct t1_state *t1, void *block, size_t n);

#endif /* TRANSPORT_H */
