1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-05-13 10:34:44 +00:00
seafile-server/lib/dir.vala
2017-07-04 14:50:05 +08:00

26 lines
652 B
Vala

namespace Seafile {
public class Dir : Object {
// _id is for fast access from c code. id is for
// vala to automatically generate a property. Note,
// if a Vala property is start with _, it is not
// translated into a GObject property.
public char _id[41];
public string id {
get { return (string)_id; }
set { Posix.memcpy(_id, value, 40); _id[40] = '\0'; }
}
public List<Dirent> entries;
public int version { set; get; }
}
public class FileCountInfo : Object {
public int64 file_count { set; get; }
public int64 dir_count { set; get; }
public int64 size { set; get; }
}
} // namespace