1 /* 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 * 4 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 5 * 6 * THE BSD LICENSE 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions are met:10 *11 * Redistributions of source code must retain the above copyright notice, this12 * list of conditions and the following disclaimer. 13 * Redistributions in binary form must reproduce the above copyright notice, 14 * this list of conditions and the following disclaimer in the documentation15 * and/or other materials provided with the distribution. 16 *17 * Neither the name of the nor the names of its contributors may be18 * used to endorse or promote products derived from this software without 19 * specific prior written permission. 20 *21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 25 * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,26 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 27 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 28 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 29 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 30 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 31 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.32 */33 34 #ifndefPUBLIC_NSACL_PLISTDEF_H35 #definePUBLIC_NSACL_PLISTDEF_H36 37 /*38 * File: plistdef.h39 *40 * Description:41 *42 * This file defines the interface to property lists. Property43 * lists are a generalization of parameter blocks (pblocks).44 */45 46 #ifndefPUBLIC_NSAPI_H47 #include"../public/nsapi.h"48 #endif/* !PUBLIC_NSAPI_H */49 50 typedefstruct PListStruct_s *PList_t;
51 52 /* Define error codes returned from property list routines */53 54 #defineERRPLINVPI -1/* invalid property index */55 #defineERRPLEXIST -2/* property already exists */56 #defineERRPLFULL -3/* property list is full */57 #defineERRPLNOMEM -4/* insufficient dynamic memory */58 #defineERRPLUNDEF -5/* undefined property name */59 60 #definePLFLG_OLD_MPOOL0/* use the plist memory pool */61 #definePLFLG_NEW_MPOOL1/* use the input memory pool */62 #definePLFLG_IGN_RES2/* ignore the reserved properties */63 #definePLFLG_USE_RES3/* use the reserved properties */64 65 #ifdef __cplusplus
66 typedefvoid (PListFunc_t)(char*, constvoid*, void*);
67 #else68 typedefvoid (PListFunc_t)();
69 #endif70 71 #ifndefINTNSACL72 73 74 75 #endif/* !INTNSACL */76 77 #endif/* !PUBLIC_NSACL_PLISTDEF_H */78