# HG changeset patch # User Marcus Lundblad # Date 1269548208 0 # Node ID ae615b3d3e472ecb2308d229152614ffbb3bc7ae # Parent e3eda7aa06532e07f59cb6e5c4aadd33cd093431 First shot at refactoring the Google-specific XMPP code. TODO: decouple GoogleSession from PurpleMedia diff -r e3eda7aa0653 -r ae615b3d3e47 libpurple/protocols/jabber/Makefile.am --- a/libpurple/protocols/jabber/Makefile.am Mon Mar 22 22:23:35 2010 +0000 +++ b/libpurple/protocols/jabber/Makefile.am Thu Mar 25 20:16:48 2010 +0000 @@ -26,8 +26,18 @@ data.h \ disco.c \ disco.h \ - google.c \ - google.h \ + google/gmail.c \ + google/gmail.h \ + google/google.c \ + google/google.h \ + google/google_presence.c \ + google/google_presence.h \ + google/google_roster.c \ + google/google_roster.h \ + google/google_session.c \ + google/google_session.h \ + google/jingleinfo.c \ + google/jingleinfo.h \ ibb.c \ ibb.h \ iq.c \ diff -r e3eda7aa0653 -r ae615b3d3e47 libpurple/protocols/jabber/Makefile.mingw --- a/libpurple/protocols/jabber/Makefile.mingw Mon Mar 22 22:23:35 2010 +0000 +++ b/libpurple/protocols/jabber/Makefile.mingw Thu Mar 25 20:16:48 2010 +0000 @@ -55,7 +55,12 @@ chat.c \ data.c \ disco.c \ - google.c \ + google/gmail.c \ + google/google.c \ + google/google_presence.c \ + google/google_roster.c \ + google/google_session.c \ + google/jingleinfo.c \ ibb.c \ iq.c \ jabber.c \ diff -r e3eda7aa0653 -r ae615b3d3e47 libpurple/protocols/jabber/buddy.c --- a/libpurple/protocols/jabber/buddy.c Mon Mar 22 22:23:35 2010 +0000 +++ b/libpurple/protocols/jabber/buddy.c Thu Mar 25 20:16:48 2010 +0000 @@ -38,7 +38,7 @@ #include "xdata.h" #include "pep.h" #include "adhoccommands.h" -#include "google.h" +#include "google/google.h" typedef struct { long idle_seconds; diff -r e3eda7aa0653 -r ae615b3d3e47 libpurple/protocols/jabber/disco.c --- a/libpurple/protocols/jabber/disco.c Mon Mar 22 22:23:35 2010 +0000 +++ b/libpurple/protocols/jabber/disco.c Thu Mar 25 20:16:48 2010 +0000 @@ -30,7 +30,9 @@ #include "adhoccommands.h" #include "buddy.h" #include "disco.h" -#include "google.h" +#include "google/google.h" +#include "google/gmail.h" +#include "google/jingleinfo.h" #include "iq.h" #include "jabber.h" #include "jingle/jingle.h" diff -r e3eda7aa0653 -r ae615b3d3e47 libpurple/protocols/jabber/iq.c --- a/libpurple/protocols/jabber/iq.c Mon Mar 22 22:23:35 2010 +0000 +++ b/libpurple/protocols/jabber/iq.c Thu Mar 25 20:16:48 2010 +0000 @@ -28,7 +28,10 @@ #include "buddy.h" #include "disco.h" -#include "google.h" +#include "google/gmail.h" +#include "google/google.h" +#include "google/jingleinfo.h" +#include "google/google_session.h" #include "iq.h" #include "jingle/jingle.h" #include "oob.h" diff -r e3eda7aa0653 -r ae615b3d3e47 libpurple/protocols/jabber/jabber.c --- a/libpurple/protocols/jabber/jabber.c Mon Mar 22 22:23:35 2010 +0000 +++ b/libpurple/protocols/jabber/jabber.c Thu Mar 25 20:16:48 2010 +0000 @@ -51,7 +51,9 @@ #include "chat.h" #include "data.h" #include "disco.h" -#include "google.h" +#include "google/google.h" +#include "google/google_roster.h" +#include "google/google_session.h" #include "ibb.h" #include "iq.h" #include "jutil.h" diff -r e3eda7aa0653 -r ae615b3d3e47 libpurple/protocols/jabber/libxmpp.c --- a/libpurple/protocols/jabber/libxmpp.c Mon Mar 22 22:23:35 2010 +0000 +++ b/libpurple/protocols/jabber/libxmpp.c Thu Mar 25 20:16:48 2010 +0000 @@ -41,7 +41,7 @@ #include "si.h" #include "message.h" #include "presence.h" -#include "google.h" +#include "google/google.h" #include "pep.h" #include "usermood.h" #include "usertune.h" diff -r e3eda7aa0653 -r ae615b3d3e47 libpurple/protocols/jabber/message.c --- a/libpurple/protocols/jabber/message.c Mon Mar 22 22:23:35 2010 +0000 +++ b/libpurple/protocols/jabber/message.c Thu Mar 25 20:16:48 2010 +0000 @@ -30,7 +30,7 @@ #include "buddy.h" #include "chat.h" #include "data.h" -#include "google.h" +#include "google/google.h" #include "message.h" #include "xmlnode.h" #include "pep.h" diff -r e3eda7aa0653 -r ae615b3d3e47 libpurple/protocols/jabber/presence.c --- a/libpurple/protocols/jabber/presence.c Mon Mar 22 22:23:35 2010 +0000 +++ b/libpurple/protocols/jabber/presence.c Thu Mar 25 20:16:48 2010 +0000 @@ -34,7 +34,8 @@ #include "buddy.h" #include "chat.h" -#include "google.h" +#include "google/google.h" +#include "google/google_presence.h" #include "presence.h" #include "iq.h" #include "jutil.h" diff -r e3eda7aa0653 -r ae615b3d3e47 libpurple/protocols/jabber/roster.c --- a/libpurple/protocols/jabber/roster.c Mon Mar 22 22:23:35 2010 +0000 +++ b/libpurple/protocols/jabber/roster.c Thu Mar 25 20:16:48 2010 +0000 @@ -27,7 +27,8 @@ #include "buddy.h" #include "chat.h" -#include "google.h" +#include "google/google.h" +#include "google/google_roster.h" #include "presence.h" #include "roster.h" #include "iq.h"