-#if HAVE_THREADS
-void whohandler_start_of_recv(struct ClientSocket *client, unsigned long tid) {
- SYNCHRONIZE(whohandler_sync);
- struct ParseOrder *entry, *last;
- for(last = parse_order; last; last = last->next) {
- if(last->next == NULL)
- break;
- }
- entry = malloc(sizeof(*entry));
- entry->tid = tid;
- entry->next = NULL;
- if(last)
- last->next = entry;
- else
- parse_order = entry;
- DESYNCHRONIZE(whohandler_sync);
-}
-
-void whohandler_end_of_recv(struct ClientSocket *client, unsigned long tid) {
- SYNCHRONIZE(whohandler_sync);
- struct ParseOrder *entry, *last = NULL;
- for(entry = parse_order; entry; entry = entry->next) {
- if(entry->tid == tid) {
- if(last)
- last->next = entry->next;
- else
- parse_order = entry->next;
- free(entry);
- break;
- } else
- last = entry;
- }
- DESYNCHRONIZE(whohandler_sync);
-}
-#endif
-
-void get_userlist(struct ChanNode *chan, userlist_callback_t callback, void *data) {
+void get_userlist(struct ChanNode *chan, int module_id, userlist_callback_t callback, void *data) {