Files
amiga-stuff/requesters/dos13.h
T
Wei-ju Wu 7746095dd7 requesters update
- scanning directory now adds the path parameter
 - file requester now sizes the requester according to the file list
   and window font
2016-01-17 22:08:58 -08:00

35 lines
788 B
C

// dos13 - a module for DOS 1.x interaction
#pragma once
#ifndef __DOS13_H__
#define __DOS13_H__
#include <exec/types.h>
#define FILETYPE_FILE 0
#define FILETYPE_DIR 1
#define FILETYPE_VOLUME 2
// This file requester is only for 1.x, so 31 characters is the
// maximum
#define MAX_FILENAME_LEN 31
/*
* Store file list entries in these entries.
*/
struct FileListEntry {
struct FileListEntry *next;
UWORD file_type;
char name[MAX_FILENAME_LEN + 1];
};
/*
* Scans the specified directory and returns the entries, if dirpath is NULL,
* returns the list of all logical volumes.
*/
extern struct FileListEntry *scan_dir(const char *dirpath);
/* free the resources allocated in the specified entry list */
void free_file_list(struct FileListEntry *entries);
#endif