xref: /onnv-gate/usr/src/lib/udapl/udapl_tavor/include/dapl_cookie.h (revision 9517:b4839b0aa7a4)
1*9517SBill.Taylor@Sun.COM /*
2*9517SBill.Taylor@Sun.COM  * CDDL HEADER START
3*9517SBill.Taylor@Sun.COM  *
4*9517SBill.Taylor@Sun.COM  * The contents of this file are subject to the terms of the
5*9517SBill.Taylor@Sun.COM  * Common Development and Distribution License (the "License").
6*9517SBill.Taylor@Sun.COM  * You may not use this file except in compliance with the License.
7*9517SBill.Taylor@Sun.COM  *
8*9517SBill.Taylor@Sun.COM  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*9517SBill.Taylor@Sun.COM  * or http://www.opensolaris.org/os/licensing.
10*9517SBill.Taylor@Sun.COM  * See the License for the specific language governing permissions
11*9517SBill.Taylor@Sun.COM  * and limitations under the License.
12*9517SBill.Taylor@Sun.COM  *
13*9517SBill.Taylor@Sun.COM  * When distributing Covered Code, include this CDDL HEADER in each
14*9517SBill.Taylor@Sun.COM  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*9517SBill.Taylor@Sun.COM  * If applicable, add the following below this CDDL HEADER, with the
16*9517SBill.Taylor@Sun.COM  * fields enclosed by brackets "[]" replaced with your own identifying
17*9517SBill.Taylor@Sun.COM  * information: Portions Copyright [yyyy] [name of copyright owner]
18*9517SBill.Taylor@Sun.COM  *
19*9517SBill.Taylor@Sun.COM  * CDDL HEADER END
20*9517SBill.Taylor@Sun.COM  */
21*9517SBill.Taylor@Sun.COM 
22*9517SBill.Taylor@Sun.COM /*
23*9517SBill.Taylor@Sun.COM  * Copyright (c) 2002-2003, Network Appliance, Inc. All rights reserved.
24*9517SBill.Taylor@Sun.COM  */
25*9517SBill.Taylor@Sun.COM 
26*9517SBill.Taylor@Sun.COM /*
27*9517SBill.Taylor@Sun.COM  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
28*9517SBill.Taylor@Sun.COM  * Use is subject to license terms.
29*9517SBill.Taylor@Sun.COM  */
30*9517SBill.Taylor@Sun.COM 
31*9517SBill.Taylor@Sun.COM /*
32*9517SBill.Taylor@Sun.COM  *
33*9517SBill.Taylor@Sun.COM  * HEADER: dapl_cookie.h
34*9517SBill.Taylor@Sun.COM  *
35*9517SBill.Taylor@Sun.COM  * PURPOSE: Utility defs & routines for the cookie data structure
36*9517SBill.Taylor@Sun.COM  *
37*9517SBill.Taylor@Sun.COM  * $Id: dapl_cookie.h,v 1.7 2003/06/13 12:21:02 sjs2 Exp $
38*9517SBill.Taylor@Sun.COM  *
39*9517SBill.Taylor@Sun.COM  */
40*9517SBill.Taylor@Sun.COM 
41*9517SBill.Taylor@Sun.COM #ifndef _DAPL_COOKIE_H_
42*9517SBill.Taylor@Sun.COM #define	_DAPL_COOKIE_H_
43*9517SBill.Taylor@Sun.COM 
44*9517SBill.Taylor@Sun.COM #ifdef __cplusplus
45*9517SBill.Taylor@Sun.COM extern "C" {
46*9517SBill.Taylor@Sun.COM #endif
47*9517SBill.Taylor@Sun.COM 
48*9517SBill.Taylor@Sun.COM #include "dapl.h"
49*9517SBill.Taylor@Sun.COM 
50*9517SBill.Taylor@Sun.COM extern DAT_RETURN
51*9517SBill.Taylor@Sun.COM dapls_cb_create(
52*9517SBill.Taylor@Sun.COM     DAPL_COOKIE_BUFFER		*buffer,
53*9517SBill.Taylor@Sun.COM     void			*queue,
54*9517SBill.Taylor@Sun.COM     DAPL_COOKIE_QUEUE_TYPE	type,
55*9517SBill.Taylor@Sun.COM     DAT_COUNT			size);
56*9517SBill.Taylor@Sun.COM 
57*9517SBill.Taylor@Sun.COM extern DAT_RETURN
58*9517SBill.Taylor@Sun.COM dapls_cb_resize(
59*9517SBill.Taylor@Sun.COM     IN	DAPL_COOKIE_BUFFER	*curr_buffer,
60*9517SBill.Taylor@Sun.COM     IN	DAT_COUNT		new_size,
61*9517SBill.Taylor@Sun.COM     IN	DAPL_COOKIE_BUFFER	*new_buffer);
62*9517SBill.Taylor@Sun.COM 
63*9517SBill.Taylor@Sun.COM extern void
64*9517SBill.Taylor@Sun.COM dapls_cb_free(
65*9517SBill.Taylor@Sun.COM     DAPL_COOKIE_BUFFER		*buffer);
66*9517SBill.Taylor@Sun.COM 
67*9517SBill.Taylor@Sun.COM extern DAT_RETURN
68*9517SBill.Taylor@Sun.COM dapls_rmr_cookie_alloc(
69*9517SBill.Taylor@Sun.COM     IN  DAPL_COOKIE_BUFFER	*buffer,
70*9517SBill.Taylor@Sun.COM     IN 	DAPL_RMR		*rmr,
71*9517SBill.Taylor@Sun.COM     IN 	DAT_RMR_COOKIE		user_cookie,
72*9517SBill.Taylor@Sun.COM     OUT DAPL_COOKIE 		**cookie_ptr);
73*9517SBill.Taylor@Sun.COM 
74*9517SBill.Taylor@Sun.COM extern DAT_RETURN
75*9517SBill.Taylor@Sun.COM dapls_dto_cookie_alloc(
76*9517SBill.Taylor@Sun.COM     IN  DAPL_COOKIE_BUFFER	*buffer,
77*9517SBill.Taylor@Sun.COM     IN  DAPL_DTO_TYPE		type,
78*9517SBill.Taylor@Sun.COM     IN 	DAT_DTO_COOKIE		user_cookie,
79*9517SBill.Taylor@Sun.COM     OUT DAPL_COOKIE 		**cookie_ptr);
80*9517SBill.Taylor@Sun.COM 
81*9517SBill.Taylor@Sun.COM extern void
82*9517SBill.Taylor@Sun.COM dapls_cookie_dealloc(
83*9517SBill.Taylor@Sun.COM     IN  DAPL_COOKIE_BUFFER	*buffer,
84*9517SBill.Taylor@Sun.COM     IN 	DAPL_COOKIE		*cookie);
85*9517SBill.Taylor@Sun.COM 
86*9517SBill.Taylor@Sun.COM #ifdef __cplusplus
87*9517SBill.Taylor@Sun.COM }
88*9517SBill.Taylor@Sun.COM #endif
89*9517SBill.Taylor@Sun.COM 
90*9517SBill.Taylor@Sun.COM #endif /* _DAPL_COOKIE_H_ */
91