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: