63 lines
2.1 KiB
C
63 lines
2.1 KiB
C
/****************************************************************************
|
|
|
|
|
| (C) Copyright 1985, 1991, 1993, 1996 Novell, Inc.
|
|
| All Rights Reserved.
|
|
|
|
|
| This program is free software; you can redistribute it and/or
|
|
| modify it under the terms of version 2 of the GNU General Public
|
|
| License as published by the Free Software Foundation.
|
|
|
|
|
| This program is distributed in the hope that it will be useful,
|
|
| but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
| GNU General Public License for more details.
|
|
|
|
|
| You should have received a copy of the GNU General Public License
|
|
| along with this program; if not, contact Novell, Inc.
|
|
|
|
|
| To contact Novell about this file by physical or electronic mail,
|
|
| you may find current contact information at www.novell.com
|
|
|
|
|
|***************************************************************************
|
|
|
|
|
| NetWare Advance File Services (NSS) module
|
|
|
|
|
|---------------------------------------------------------------------------
|
|
|
|
|
| $Author: randys $
|
|
| $Date: 2005-01-11 23:43:47 +0530 (Tue, 11 Jan 2005) $
|
|
|
|
|
| $RCSfile$
|
|
| $Revision: 511 $
|
|
|
|
|
|---------------------------------------------------------------------------
|
|
| This module is used to:
|
|
| Function prototypes for NLMs friendly to NSS.
|
|
+-------------------------------------------------------------------------*/
|
|
#ifndef _NSS_BITMAP_H_
|
|
#define _NSS_BITMAP_H_
|
|
|
|
#ifndef _ZOMNI_H_
|
|
# include <zOmni.h>
|
|
#endif
|
|
|
|
typedef struct BitMap_s {
|
|
NINT *bits;
|
|
NINT max;
|
|
NINT start;
|
|
} BitMap_s;
|
|
|
|
extern NINT getMaxBits (BitMap_s *bitMap);
|
|
extern BOOL testABit (BitMap_s *bitMap, NINT bitNum);
|
|
extern void setAbit (BitMap_s *bitMap, NINT bitNum);
|
|
extern void clearAbit(BitMap_s *bitMap, NINT bitNum);
|
|
extern void setBits(BitMap_s *bitMap, NINT startBit, NINT numBits);
|
|
extern void clearBits(BitMap_s *bitMap, NINT startBit, NINT numBits);
|
|
extern NINT countBits(BitMap_s *bitMap);
|
|
extern SNINT findBits(BitMap_s *bitMap, NINT bitsNeeded);
|
|
|
|
extern BitMap_s *newBitMap(BitMap_s *bitMap, NINT numBits);
|
|
extern void freeBitMap(BitMap_s *bitMap);
|
|
|
|
#endif
|