added QSE_DIR_LIMITED & QSE_GLOB_LIMITED
fixed bugs in qse_fs_delXXX()
This commit is contained in:
@ -60,7 +60,8 @@ typedef enum qse_dir_errnum_t qse_dir_errnum_t;
|
||||
enum qse_dir_flag_t
|
||||
{
|
||||
QSE_DIR_MBSPATH = (1 << 0),
|
||||
QSE_DIR_SORT = (1 << 1)
|
||||
QSE_DIR_SORT = (1 << 1),
|
||||
QSE_DIR_LIMITED = (1 << 2) /**< limited to normal entries excluding . and .. */
|
||||
};
|
||||
|
||||
struct qse_dir_ent_t
|
||||
|
@ -61,6 +61,9 @@ enum qse_fs_errnum_t
|
||||
QSE_FS_ENOENT, /**< no such file or directory */
|
||||
QSE_FS_EEXIST, /**< already exist */
|
||||
QSE_FS_EINTR, /**< interrupted */
|
||||
QSE_FS_EPIPE, /**< broken pipe */
|
||||
QSE_FS_EAGAIN, /**< resource temporarily unavailable */
|
||||
|
||||
QSE_FS_EISDIR, /**< is a directory */
|
||||
QSE_FS_ENOTDIR, /**< not a directory */
|
||||
QSE_FS_ENOTVOID, /**< directory not empty */
|
||||
|
@ -54,7 +54,11 @@ enum qse_glob_flags_t
|
||||
QSE_GLOB_IGNORECASE = (1 << 2),
|
||||
|
||||
/** Make the function to be more fault-resistent */
|
||||
QSE_GLOB_TOLERANT = (1 << 3)
|
||||
QSE_GLOB_TOLERANT = (1 << 3),
|
||||
|
||||
/** Exclude special entries from matching.
|
||||
* Special entries include . and .. */
|
||||
QSE_GLOB_LIMITED = (1 << 4)
|
||||
};
|
||||
|
||||
#if defined(__cplusplus)
|
||||
@ -72,7 +76,8 @@ QSE_EXPORT int qse_glob (
|
||||
qse_glob_cbimpl_t cbimpl,
|
||||
void* cbctx,
|
||||
int flags,
|
||||
qse_mmgr_t* mmgr
|
||||
qse_mmgr_t* mmgr,
|
||||
qse_cmgr_t* cmgr
|
||||
);
|
||||
|
||||
#if defined(__cplusplus)
|
||||
|
Reference in New Issue
Block a user