Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/xmpp_muc.c @ 1604:351427ef0b4b
Remove #include's of C files
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 11 Oct 2009 15:59:53 +0200 |
parents | dcd5d4c75199 |
children | 2f6bdfa0cb01 |
comparison
equal
deleted
inserted
replaced
1603:54029aba9452 | 1604:351427ef0b4b |
---|---|
17 * You should have received a copy of the GNU General Public License | 17 * You should have received a copy of the GNU General Public License |
18 * along with this program; if not, write to the Free Software | 18 * along with this program; if not, write to the Free Software |
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 | 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
20 * USA | 20 * USA |
21 */ | 21 */ |
22 | |
23 #include <string.h> | |
24 #include <stdlib.h> | |
25 | |
26 #include "xmpp_helper.h" | |
27 #include "events.h" | |
28 #include "hooks.h" | |
29 #include "screen.h" | |
30 #include "hbuf.h" | |
31 #include "roster.h" | |
32 #include "commands.h" | |
33 #include "settings.h" | |
34 #include "utils.h" | |
35 #include "histolog.h" | |
36 | |
37 extern enum imstatus mystatus; | |
38 extern gchar *mystatusmsg; | |
22 | 39 |
23 static void decline_invitation(event_muc_invitation *invitation, char *reason) | 40 static void decline_invitation(event_muc_invitation *invitation, char *reason) |
24 { | 41 { |
25 // cut and paste from xmpp_room_invite | 42 // cut and paste from xmpp_room_invite |
26 LmMessage *m; | 43 LmMessage *m; |
366 } | 383 } |
367 | 384 |
368 return new_member; | 385 return new_member; |
369 } | 386 } |
370 | 387 |
371 static void handle_muc_presence(const char *from, LmMessageNode *xmldata, | 388 void handle_muc_presence(const char *from, LmMessageNode *xmldata, |
372 const char *roomjid, const char *rname, | 389 const char *roomjid, const char *rname, |
373 enum imstatus ust, const char *ustmsg, | 390 enum imstatus ust, const char *ustmsg, |
374 time_t usttime, char bpprio) | 391 time_t usttime, char bpprio) |
375 { | 392 { |
376 LmMessageNode *y; | 393 LmMessageNode *y; |
377 const char *p; | 394 const char *p; |
378 char *mbuf; | 395 char *mbuf; |
379 const char *ournick; | 396 const char *ournick; |
595 } | 612 } |
596 | 613 |
597 scr_DrawRoster(); | 614 scr_DrawRoster(); |
598 } | 615 } |
599 | 616 |
600 static void roompresence(gpointer room, void *presencedata) | 617 void roompresence(gpointer room, void *presencedata) |
601 { | 618 { |
602 const char *bjid; | 619 const char *bjid; |
603 const char *nickname; | 620 const char *nickname; |
604 char *to; | 621 char *to; |
605 struct T_presence *pres = presencedata; | 622 struct T_presence *pres = presencedata; |
672 g_free(barejid); | 689 g_free(barejid); |
673 } | 690 } |
674 | 691 |
675 | 692 |
676 // Specific MUC message handling (for example invitation processing) | 693 // Specific MUC message handling (for example invitation processing) |
677 static void got_muc_message(const char *from, LmMessageNode *x) | 694 void got_muc_message(const char *from, LmMessageNode *x) |
678 { | 695 { |
679 LmMessageNode *invite = lm_message_node_get_child(x, "invite"); | 696 LmMessageNode *invite = lm_message_node_get_child(x, "invite"); |
680 if (invite) | 697 if (invite) |
681 { | 698 { |
682 const char *invite_from; | 699 const char *invite_from; |