From e78cd4574877a314d67df4352e1c78fa62e18543 Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Wed, 6 Nov 2013 19:59:11 +0000 Subject: [PATCH] add zero uuid instance --- include/uuid.h | 2 ++ src/uuid/uuid.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/include/uuid.h b/include/uuid.h index 641316f..a81fbbc 100644 --- a/include/uuid.h +++ b/include/uuid.h @@ -53,6 +53,8 @@ CLASS(Uuid) { } uuid; }; +extern Uuid uuidZero; + /* * generator functions...these are not really part of the object * but generate a uuid object. diff --git a/src/uuid/uuid.c b/src/uuid/uuid.c index 374833d..8d08e52 100644 --- a/src/uuid/uuid.c +++ b/src/uuid/uuid.c @@ -53,4 +53,8 @@ uuidClone(void * _this, void * _base) INIT_IFACE(Class, uuidCtor, uuidDtor, uuidClone); CREATE_CLASS(Uuid, NULL, IFACE(Class)); +INSTANCE(Uuid, uuidZero) { + .uuid.value = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} +}}; + // vim: set ts=4 sw=4: