MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / hb_readdir

Function hb_readdir

libhb/ports.c:885–903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

883}
884
885struct dirent * hb_readdir(HB_DIR *dir)
886{
887#ifdef SYS_MINGW
888 struct _wdirent *entry;
889 entry = _wreaddir(dir->wdir);
890 if (entry == NULL)
891 return NULL;
892
893 int len = WideCharToMultiByte(CP_UTF8, 0, entry->d_name, -1,
894 dir->entry.d_name, sizeof(dir->entry.d_name),
895 NULL, NULL );
896 dir->entry.d_ino = entry->d_ino;
897 dir->entry.d_reclen = entry->d_reclen;
898 dir->entry.d_namlen = len - 1;
899 return &dir->entry;
900#else
901 return readdir(dir);
902#endif
903}
904
905void hb_rewinddir(HB_DIR *dir)
906{

Callers 3

hb_batch_initFunction · 0.85
hb_presets_add_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected