eServiceFS::eServiceFS(const char *path): path(path)
{
+ m_list_valid = 0;
}
eServiceFS::~eServiceFS()
return 0;
}
+RESULT eServiceFS::getNext(eServiceReference &ptr)
+{
+ if (!m_list_valid)
+ {
+ m_list_valid = 1;
+ int res = getContent(m_list);
+ if (res)
+ return res;
+ }
+
+ if (!m_list.size())
+ return -ERANGE;
+
+ ptr = m_list.front();
+ m_list.pop_front();
+ return 0;
+}
+
eAutoInitPtr<eServiceFactoryFS> init_eServiceFactoryFS(eAutoInitNumbers::service+1, "eServiceFactoryFS");