Category : OS/2 Files
Archive   : SHR93.ZIP
Filename : LIST.H

 
Output of file : LIST.H contained in archive : SHR93.ZIP
/*
* OS/2 Work Place Shell Sample Program - Simple ordered list functions
*
* Copyright (C) 1993 IBM Corporation
*
* DISCLAIMER OF WARRANTIES. The following [enclosed] code is
* sample code created by IBM Corporation. This sample code is
* not part of any standard or IBM product and is provided to you
* solely for the purpose of assisting you in the development of
* your applications. The code is provided "AS IS". ALL
* WARRANTIES ARE EXPRESSLY DISCLAIMED, INCLUDING THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE. IBM shall not be liable for any damages arising out
* of your use of the sample code, even if IBM has been advised of
* the possibility of such damages.
*
* Simple list. Note that PVOID is used for list to allow
* easy conversion to a SOM object.
*/

#ifndef LIST_H
#define LIST_H

/*
* Comparision functions for searching list.
*/

typedef LONG (FNLISTCOMPARE)(PVOID, PVOID);
typedef FNLISTCOMPARE *PFNLISTCOMPARE;

/*
* Create or destroy a list.
*/

extern PVOID ShrGenericListNew(PFNLISTCOMPARE pfnCompare);
extern PVOID ShrExactStringListNew(void);
extern PVOID ShrStringListNew(void);
extern PVOID ShrValueListNew(void);

extern BOOL ShrListFree(PVOID pListParm);

/*
* Add an item to a list.
*/

extern BOOL ShrListAddLast(PVOID pListParm, PVOID pValue);
extern BOOL ShrListAddFirst(PVOID pListParm, PVOID pValue);
extern BOOL ShrListAddBefore
(PVOID pListParm, PVOID pValue, PVOID pBeforeValue);
extern BOOL ShrListAddAfter
(PVOID pListParm, PVOID pValue, PVOID pAfterValue);

/*
* Remove an item from list.
*/

extern BOOL ShrListRemove(PVOID pListParm, PVOID pValue);
extern PVOID ShrListRemoveFirst(PVOID pListParm);
extern BOOL ShrListRemoveAll(PVOID pListParm);

/*
* Enumerate items in a list.
*/

extern PVOID ShrListBeginEnum(PVOID pListParm);
extern BOOL ShrListEndEnum(PVOID pListParm, PVOID pListEnum);
extern BOOL ShrListNext
(PVOID pListParm, PVOID pListEnum, PVOID *ppValue);

/*
* List statistics.
*/

extern ULONG ShrListCount(PVOID pListParm);

/*
* Membership.
*/

extern BOOL ShrListIncludes(PVOID pListParm, PVOID pValue);

#endif


  3 Responses to “Category : OS/2 Files
Archive   : SHR93.ZIP
Filename : LIST.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/