You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
falk-werner_webfuse/src/webfuse/filesystem/groupid.hpp

26 lines
400 B

#ifndef WEBFUSE_GROUPID_HPP
#define WEBFUSE_GROUPID_HPP
#include <unistd.h>
#include <cinttypes>
namespace webfuse
{
class group_id
{
public:
static constexpr uint32_t const invalid = (uint32_t) -1;
explicit group_id(uint32_t value = invalid);
operator uint32_t() const;
static group_id from_gid(gid_t value);
gid_t to_gid() const;
private:
uint32_t value_;
};
}
#endif