mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-31 06:30:52 +00:00
60 lines
1001 B
C
60 lines
1001 B
C
/*!
|
|
* @file Mw/Abstract/Directory.h
|
|
* @brief Directory functions
|
|
*/
|
|
#ifndef __MW_ABSTRACT_DIRECTORY_H__
|
|
#define __MW_ABSTRACT_DIRECTORY_H__
|
|
|
|
#include <Mw/MachDep.h>
|
|
#include <Mw/TypeDefs.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*!
|
|
* @brief Opens a directory
|
|
* @param path Path
|
|
* @return Handle
|
|
*/
|
|
MWDECL void* MwDirectoryOpen(const char* path);
|
|
|
|
/*!
|
|
* @brief Closes a directory
|
|
* @param handle Handle
|
|
*/
|
|
MWDECL void MwDirectoryClose(void* handle);
|
|
|
|
/*!
|
|
* @brief Reads a directory
|
|
* @param handle Handle
|
|
* @return Directory entry
|
|
*/
|
|
MWDECL MwDirectoryEntry* MwDirectoryRead(void* handle);
|
|
|
|
/*!
|
|
* @brief Frees a directory entry
|
|
* @param entry Entry
|
|
*/
|
|
MWDECL void MwDirectoryFreeEntry(MwDirectoryEntry* entry);
|
|
|
|
/*!
|
|
* @brief Gets a current directory
|
|
* @param Directory
|
|
*/
|
|
MWDECL char* MwDirectoryCurrent(void);
|
|
|
|
/*!
|
|
* @brief Joins 2 paths
|
|
* @param a Path
|
|
* @param b Path
|
|
* @return Path
|
|
*/
|
|
MWDECL char* MwDirectoryJoin(char* a, char* b);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|