projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* minor cleanup
[citadel.git]
/
webcit
/
calendar_tools.c
diff --git
a/webcit/calendar_tools.c
b/webcit/calendar_tools.c
index b7cf8fbe7130e3df373992363db4efb03402b48f..49fbcb7642310420283712fec97cf6b07b1bf691 100644
(file)
--- a/
webcit/calendar_tools.c
+++ b/
webcit/calendar_tools.c
@@
-144,6
+144,17
@@
struct icaltimetype icaltime_from_webform(char *prefix) {
}
+/*
+ * Generae a new, globally unique UID parameter for a calendar object.
+ */
+void generate_new_uid(char *buf) {
+ static int seq = 0;
+
+ sprintf(buf, "%ld-%d@%s",
+ (long)time(NULL),
+ (seq++),
+ serv_info.serv_fqdn);
+}
#endif