| 1 | /*DDK*************************************************************************/
|
|---|
| 2 | /* */
|
|---|
| 3 | /* COPYRIGHT Copyright (C) 1991, 2003 IBM Corporation */
|
|---|
| 4 | /* */
|
|---|
| 5 | /* The following IBM OS/2 source code is provided to you solely for */
|
|---|
| 6 | /* the purpose of assisting you in your development of OS/2 device */
|
|---|
| 7 | /* drivers. You may use this code in accordance with the IBM License */
|
|---|
| 8 | /* Agreement provided in the IBM Developer Connection Device Driver */
|
|---|
| 9 | /* Source Kit for OS/2. This Copyright statement may not be removed. */
|
|---|
| 10 | /* */
|
|---|
| 11 | /*****************************************************************************/
|
|---|
| 12 | /**************************************************************************
|
|---|
| 13 | *
|
|---|
| 14 | * SOURCE FILE NAME = LISTFLS.H
|
|---|
| 15 | *
|
|---|
| 16 | * DESCRIPTIVE NAME = File list interface functions
|
|---|
| 17 | *
|
|---|
| 18 | *
|
|---|
| 19 | * VERSION = V1.0
|
|---|
| 20 | *
|
|---|
| 21 | * DATE
|
|---|
| 22 | *
|
|---|
| 23 | * DESCRIPTION List interface function prototypes: input files.
|
|---|
| 24 | *
|
|---|
| 25 | *
|
|---|
| 26 | * FUNCTIONS
|
|---|
| 27 | *
|
|---|
| 28 | *
|
|---|
| 29 | *
|
|---|
| 30 | * NOTES
|
|---|
| 31 | *
|
|---|
| 32 | *
|
|---|
| 33 | * STRUCTURES
|
|---|
| 34 | *
|
|---|
| 35 | * EXTERNAL REFERENCES
|
|---|
| 36 | *
|
|---|
| 37 | * EXTERNAL FUNCTIONS
|
|---|
| 38 | *
|
|---|
| 39 | */
|
|---|
| 40 |
|
|---|
| 41 | //
|
|---|
| 42 | // a generic filename list, used to maintain list of input files.
|
|---|
| 43 | // unlimited size, and only one instance is supported right now.
|
|---|
| 44 | //
|
|---|
| 45 | // usage:
|
|---|
| 46 | // just call ReadFrom* function and then
|
|---|
| 47 | // GetName(1)
|
|---|
| 48 | // and GetName(0) in loop to iterate through all file names that were collected.
|
|---|
| 49 | //
|
|---|
| 50 |
|
|---|
| 51 | void FilenameList_Destroy(void);
|
|---|
| 52 | int FilenameList_AddName(char *name);
|
|---|
| 53 | char* FilenameList_GetName(int start);
|
|---|
| 54 | ULONG FilenameList_GetCount(void);
|
|---|
| 55 | int FilenameList_ReadFromListFile(char *filename);
|
|---|
| 56 | int FilenameList_ReadFromDirectory(char *source_path, char *wildcard);
|
|---|