Deleted Added
full compact
hast_proto.h (204076) hast_proto.h (212033)
1/*-
2 * Copyright (c) 2009-2010 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Pawel Jakub Dawidek under sponsorship from
6 * the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
1/*-
2 * Copyright (c) 2009-2010 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Pawel Jakub Dawidek under sponsorship from
6 * the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $FreeBSD: head/sbin/hastd/hast_proto.h 204076 2010-02-18 23:16:19Z pjd $
29 * $FreeBSD: head/sbin/hastd/hast_proto.h 212033 2010-08-30 22:26:42Z pjd $
30 */
31
32#ifndef _HAST_PROTO_H_
33#define _HAST_PROTO_H_
34
35#include <stdlib.h> /* size_t */
36
37#include <nv.h>
38#include <proto.h>
39
30 */
31
32#ifndef _HAST_PROTO_H_
33#define _HAST_PROTO_H_
34
35#include <stdlib.h> /* size_t */
36
37#include <nv.h>
38#include <proto.h>
39
40int hast_proto_send(struct hast_resource *res, struct proto_conn *conn,
40int hast_proto_send(const struct hast_resource *res, struct proto_conn *conn,
41 struct nv *nv, const void *data, size_t size);
41 struct nv *nv, const void *data, size_t size);
42int hast_proto_recv(struct hast_resource *res, struct proto_conn *conn,
42int hast_proto_recv(const struct hast_resource *res, struct proto_conn *conn,
43 struct nv **nvp, void *data, size_t size);
43 struct nv **nvp, void *data, size_t size);
44int hast_proto_recv_hdr(struct proto_conn *conn, struct nv **nvp);
45int hast_proto_recv_data(struct hast_resource *res, struct proto_conn *conn,
46 struct nv *nv, void *data, size_t size);
44int hast_proto_recv_hdr(const struct proto_conn *conn, struct nv **nvp);
45int hast_proto_recv_data(const struct hast_resource *res,
46 struct proto_conn *conn, struct nv *nv, void *data, size_t size);
47
48#endif /* !_HAST_PROTO_H_ */
47
48#endif /* !_HAST_PROTO_H_ */