controlapi: sort files alphabetical

This commit is contained in:
TangoCash
2016-02-12 22:19:43 +01:00
committed by svenhoefer
parent a87751015a
commit 21fbadaa8f
2 changed files with 28 additions and 11 deletions

View File

@@ -27,6 +27,18 @@ private:
} TyCgiCall;
const static TyCgiCall yCgiCallList[];
struct FileCGI_List
{
std::string name;
std::string type_str;
unsigned char type;
std::string fullname;
bool operator () (FileCGI_List a,FileCGI_List b)
{
return (a.name < b.name);
}
} fsort;
int rc_send(int ev, unsigned int code, unsigned int value);
// send functions for ExecuteCGI (controld api)