Browse Source

add zero uuid instance

v0.1.8
Georg Hopp 12 years ago
parent
commit
e78cd45748
  1. 2
      include/uuid.h
  2. 4
      src/uuid/uuid.c

2
include/uuid.h

@ -53,6 +53,8 @@ CLASS(Uuid) {
} uuid; } uuid;
}; };
extern Uuid uuidZero;
/* /*
* generator functions...these are not really part of the object * generator functions...these are not really part of the object
* but generate a uuid object. * but generate a uuid object.

4
src/uuid/uuid.c

@ -53,4 +53,8 @@ uuidClone(void * _this, void * _base)
INIT_IFACE(Class, uuidCtor, uuidDtor, uuidClone); INIT_IFACE(Class, uuidCtor, uuidDtor, uuidClone);
CREATE_CLASS(Uuid, NULL, IFACE(Class)); 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: // vim: set ts=4 sw=4:
Loading…
Cancel
Save