mirror of
https://github.com/weiju/amiga-stuff
synced 2026-09-11 19:26:01 +00:00
found out how to access the current volume list in AmigaDOS and added a way to read this list, currently displays a portion of the assign list in the file list
34 lines
685 B
C
34 lines
685 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];
|
|
};
|
|
|
|
/*
|
|
* scan the current directory
|
|
*/
|
|
extern struct FileListEntry *scan_current_dir();
|
|
|
|
/* free the resources allocated in the specified entry list */
|
|
void free_file_list(struct FileListEntry *entries);
|
|
|
|
#endif
|