diff options
author | David Walter Seikel | 2014-05-28 15:51:47 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-28 15:51:47 +1000 |
commit | 98170010ee92c807650bd529216612532975c14e (patch) | |
tree | 7f7030cdc9d4b3f65329603d4f79be2405aa9f6e /src/extantz | |
parent | Oops part two. (diff) | |
download | SledjHamr-98170010ee92c807650bd529216612532975c14e.zip SledjHamr-98170010ee92c807650bd529216612532975c14e.tar.gz SledjHamr-98170010ee92c807650bd529216612532975c14e.tar.bz2 SledjHamr-98170010ee92c807650bd529216612532975c14e.tar.xz |
The UUID faking code is common enough to stick it in a macro.
Diffstat (limited to 'src/extantz')
-rw-r--r-- | src/extantz/extantz.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c index e611e4d..4f5d9ea 100644 --- a/src/extantz/extantz.c +++ b/src/extantz/extantz.c | |||
@@ -150,7 +150,7 @@ static void _onWorldClick(void *data, Evas *e EINA_UNUSED, Evas_Object *o, void | |||
150 | char SID[64]; | 150 | char SID[64]; |
151 | 151 | ||
152 | // CUBE_UUID.events.touch_start(1), but we just make one up for now. | 152 | // CUBE_UUID.events.touch_start(1), but we just make one up for now. |
153 | snprintf(SID, sizeof(SID), "%08lx-%04lx-%04lx-%04lx-%012lx", random(), random() % 0xFFFF, random() % 0xFFFF, random() % 0xFFFF, random()); | 153 | snprintf(SID, sizeof(SID), FAKE_UUID); |
154 | sendForth(ourGlobals.server, SID, "events.touch_start(1)"); | 154 | sendForth(ourGlobals.server, SID, "events.touch_start(1)"); |
155 | } | 155 | } |
156 | } | 156 | } |