~ubuntu-branches/ubuntu/oneiric/open-iscsi/oneiric

« back to all changes in this revision

Viewing changes to usr/transport.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Zobel-Helas
  • Date: 2006-12-03 16:54:21 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20061203165421-udgd6i05ugt1byrh
Tags: upstream-2.0.730
ImportĀ upstreamĀ versionĀ 2.0.730

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef ISCSI_TRANSPORT_H
 
2
#define ISCSI_TRANSPORT_H
 
3
 
 
4
#include "types.h"
 
5
 
 
6
struct iscsi_provider_t;
 
7
struct iscsi_conn;
 
8
 
 
9
struct iscsi_uspace_transport {
 
10
        const char *name;
 
11
        uint8_t rdma;
 
12
        int (*ep_connect) (iscsi_conn_t *conn, int non_blocking);
 
13
        int (*ep_poll) (iscsi_conn_t *conn, int timeout_ms);
 
14
        void (*ep_disconnect) (iscsi_conn_t *conn);
 
15
};
 
16
 
 
17
extern int set_uspace_transport(struct iscsi_provider_t *p);
 
18
 
 
19
#endif