28 #include <sys/types.h>
29 #include <uuid/uuid.h>
48 uuid_unparse(uuid, this->
id);
50 this->hash =
sdbm((
unsigned char *)this->
id, 36);
static void sessionHandleDouble(void *_this, void *_doub)
unsigned long sdbm(const unsigned char *, size_t)
static int sessionCtor(void *_this, va_list *params)
INIT_IFACE(Class, sessionCtor, sessionDtor, NULL)
static unsigned long sessionGetHash(void *_this)
static void sessionDtor(void *_this)
CREATE_CLASS(Session, NULL, IFACE(Class), IFACE(Hashable))