~james-page/ubuntu/saucy/openvswitch/1.12-snapshot

« back to all changes in this revision

Viewing changes to lib/vconn-provider.h

  • Committer: James Page
  • Date: 2013-08-21 10:16:57 UTC
  • mfrom: (1.1.20)
  • Revision ID: james.page@canonical.com-20130821101657-3o0z0qeiv5zkwlzi
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 *
31
31
 * This structure should be treated as opaque by vconn implementations. */
32
32
struct vconn {
33
 
    struct vconn_class *class;
 
33
    const struct vconn_class *class;
34
34
    int state;
35
35
    int error;
36
36
 
48
48
    char *name;
49
49
};
50
50
 
51
 
void vconn_init(struct vconn *, struct vconn_class *, int connect_status,
 
51
void vconn_init(struct vconn *, const struct vconn_class *, int connect_status,
52
52
                const char *name, uint32_t allowed_versions);
53
53
void vconn_free_data(struct vconn *vconn);
54
54
void vconn_set_remote_ip(struct vconn *, ovs_be32 remote_ip);
143
143
 *
144
144
 * This structure should be treated as opaque by vconn implementations. */
145
145
struct pvconn {
146
 
    struct pvconn_class *class;
 
146
    const struct pvconn_class *class;
147
147
    char *name;
148
148
    uint32_t allowed_versions;
149
149
};
150
150
 
151
 
void pvconn_init(struct pvconn *pvconn, struct pvconn_class *class,
 
151
void pvconn_init(struct pvconn *pvconn, const struct pvconn_class *class,
152
152
                 const char *name, uint32_t allowed_versions);
153
153
static inline void pvconn_assert_class(const struct pvconn *pvconn,
154
154
                                       const struct pvconn_class *class)
198
198
};
199
199
 
200
200
/* Active and passive vconn classes. */
201
 
extern struct vconn_class tcp_vconn_class;
202
 
extern struct pvconn_class ptcp_pvconn_class;
203
 
extern struct vconn_class unix_vconn_class;
204
 
extern struct pvconn_class punix_pvconn_class;
 
201
extern const struct vconn_class tcp_vconn_class;
 
202
extern const struct pvconn_class ptcp_pvconn_class;
 
203
extern const struct vconn_class unix_vconn_class;
 
204
extern const struct pvconn_class punix_pvconn_class;
205
205
#ifdef HAVE_OPENSSL
206
 
extern struct vconn_class ssl_vconn_class;
207
 
extern struct pvconn_class pssl_pvconn_class;
 
206
extern const struct vconn_class ssl_vconn_class;
 
207
extern const struct pvconn_class pssl_pvconn_class;
208
208
#endif
209
209
 
210
210
#endif /* vconn-provider.h */