1/* 2 * CDDL HEADER START 3 * 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. 7 * 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. 12 * 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] 18 * 19 * CDDL HEADER END 20 */ 21 22/* 23 * Copyright (c) 2002-2003, Network Appliance, Inc. All rights reserved. 24 */ 25 26/* 27 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 28 * Use is subject to license terms. 29 */ 30 31/* 32 * 33 * HEADER: dapl_cookie.h 34 * 35 * PURPOSE: Utility defs & routines for the cookie data structure 36 * 37 * $Id: dapl_cookie.h,v 1.7 2003/06/13 12:21:02 sjs2 Exp $ 38 * 39 */ 40 41#ifndef _DAPL_COOKIE_H_ 42#define _DAPL_COOKIE_H_ 43 44#ifdef __cplusplus 45extern "C" { 46#endif 47 48#include "dapl.h" 49 50extern DAT_RETURN 51dapls_cb_create( 52 DAPL_COOKIE_BUFFER *buffer, 53 void *queue, 54 DAPL_COOKIE_QUEUE_TYPE type, 55 DAT_COUNT size); 56 57extern DAT_RETURN 58dapls_cb_resize( 59 IN DAPL_COOKIE_BUFFER *curr_buffer, 60 IN DAT_COUNT new_size, 61 IN DAPL_COOKIE_BUFFER *new_buffer); 62 63extern void 64dapls_cb_free( 65 DAPL_COOKIE_BUFFER *buffer); 66 67extern DAT_RETURN 68dapls_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); 73 74extern DAT_RETURN 75dapls_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); 80 81extern void 82dapls_cookie_dealloc( 83 IN DAPL_COOKIE_BUFFER *buffer, 84 IN DAPL_COOKIE *cookie); 85 86#ifdef __cplusplus 87} 88#endif 89 90#endif /* _DAPL_COOKIE_H_ */ 91