Created
July 13, 2014 22:22
-
-
Save jdiez17/74d85b07193aa51a4b0d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void in_received_handler(DictionaryIterator* received, void* ctx) { | |
Tuple* data = dict_read_first(received); | |
while(data) { | |
switch(data->key) { | |
case KEY_UTC_OFFSET: | |
utc_offset = (time_t) data->value->int32; | |
persist_write_int(KEY_UTC_OFFSET, utc_offset); | |
break; | |
case KEY_NEXT_LAUNCH: | |
next_launch_ts = (time_t) data->value->int32; | |
persist_write_int(KEY_NEXT_LAUNCH, next_launch_ts); | |
break; | |
} | |
data = dict_read_next(received); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment