/soc/2015/nakulgulati/main: 771c69209d94: hangouts: channel temp...

Nakul at rock.pidgin.im Nakul at rock.pidgin.im
Sun Aug 9 15:16:44 EDT 2015


Changeset: 771c69209d94231bec471b251cf8ee6de4d46f5f
Author:	 Nakul Gulati
Date:	 2015-08-10 03:15 +0800
Branch:	 hangouts
URL: https://hg.pidgin.im/soc/2015/nakulgulati/main/rev/771c69209d94

Description:

hangouts: channel template

diffstat:

 libpurple/protocols/hangouts/Makefile.am    |   4 ++-
 libpurple/protocols/hangouts/Makefile.mingw |   1 +
 libpurple/protocols/hangouts/channel.c      |  17 +++++++++++++++
 libpurple/protocols/hangouts/channel.h      |  31 +++++++++++++++++++++++++++++
 4 files changed, 52 insertions(+), 1 deletions(-)

diffs (86 lines):

diff --git a/libpurple/protocols/hangouts/Makefile.am b/libpurple/protocols/hangouts/Makefile.am
--- a/libpurple/protocols/hangouts/Makefile.am
+++ b/libpurple/protocols/hangouts/Makefile.am
@@ -8,10 +8,12 @@ HANGOUTSSOURCES = \
 	api.c \
 	auth.h \
 	auth.c \
+	channel.h \
+	channel.c \
 	hangouts.h \
 	hangouts.c \
 	util.h \
-	util.c
+	util.c 
 
 AM_CFLAGS = $(st)
 
diff --git a/libpurple/protocols/hangouts/Makefile.mingw b/libpurple/protocols/hangouts/Makefile.mingw
--- a/libpurple/protocols/hangouts/Makefile.mingw
+++ b/libpurple/protocols/hangouts/Makefile.mingw
@@ -40,6 +40,7 @@ LIB_PATHS +=		-L$(GTK_TOP)/lib \
 C_SRC =	\
 			api.c
 			auth.c
+			channel.c
 			hangouts.c
 			util.c
 
diff --git a/libpurple/protocols/hangouts/channel.c b/libpurple/protocols/hangouts/channel.c
new file mode 100644
--- /dev/null
+++ b/libpurple/protocols/hangouts/channel.c
@@ -0,0 +1,17 @@
+#include "channel.h"
+
+#include <glib.h>
+
+G_DEFINE_TYPE(HangoutsChannel, hangouts_channel, G_TYPE_OBJECT);
+
+static void
+hangouts_channel_class_init (HangoutsChannelClass *klass)
+{
+
+}
+
+static void
+hangouts_channel_init (HangoutsChannel *channel)
+{
+
+}
diff --git a/libpurple/protocols/hangouts/channel.h b/libpurple/protocols/hangouts/channel.h
new file mode 100644
--- /dev/null
+++ b/libpurple/protocols/hangouts/channel.h
@@ -0,0 +1,31 @@
+#ifndef _HANGOUTS_CHANNEL_H_
+#define _HANGOUTS_CHANNEL_H_
+
+#include <glib.h>
+#include <glib-object.h>
+
+#define HANGOUTS_TYPE_CHANNEL                   (hangouts_channel_get_type ())
+#define HANGOUTS_CHANNEL(obj)                   (G_TYPE_CHECK_INSTANCE_CAST ((obj), HANGOUTS_TYPE_CHANNEL, HangoutsChannel))
+#define HANGOUTS_IS_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HANGOUTS_TYPE_CHANNEL))
+#define HANGOUTS_CHANNEL_CLASS(_class)          (G_TYPE_CHECK_CLASS_CAST ((_class), HANGOUTS_TYPE_CHANNEL, HangoutsChannelClass))
+#define HANGOUTS_IS_CHANNEL_CLASS(_class)       (G_TYPE_CHECK_CLASS_TYPE ((_class), HANGOUTS_TYPE_CHANNEL))
+#define HANGOUTS_CHANNEL_GET_CLASS(obj)         (G_TYPE_INSTANCE_GET_CLASS ((obj), HANGOUTS_TYPE_CHANNEL, HangoutsChannelClass))
+
+typedef struct _HangoutsChannel HangoutsChannel;
+typedef struct _HangoutsChannelClass HangoutsChannelClass;
+
+struct _HangoutsChannel
+{
+  GObject parent;
+};
+
+struct _HangoutsChannelClass
+{
+  GObjectClass parent;
+};
+
+GType
+hangouts_channel_get_type (void);
+
+#endif /* _HANGOUTS_CHANNEL_H_ */
+



More information about the Commits mailing list