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