equal
deleted
inserted
replaced
1109 static char *generate_session_id(char *prefix) |
1109 static char *generate_session_id(char *prefix) |
1110 { |
1110 { |
1111 char *result; |
1111 char *result; |
1112 static int counter = 0; |
1112 static int counter = 0; |
1113 counter++; |
1113 counter++; |
1114 // TODO better use timezone ? |
1114 // TODO better use timestamp? |
1115 result = g_strdup_printf("%s-%i", prefix, counter); |
1115 result = g_strdup_printf("%s-%i", prefix, counter); |
1116 return result; |
1116 return result; |
1117 } |
1117 } |
1118 |
1118 |
1119 static void handle_iq_command_set_status(jconn conn, char *from, const char *id, |
1119 static void handle_iq_command_set_status(jconn conn, char *from, const char *id, |