summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnkit Vani <a@nevitus.org>2013-08-19 20:20:54 +0530
committerAnkit Vani <a@nevitus.org>2013-08-19 20:20:54 +0530
commit1b64b38fb416aa1516188b2dcece86e2b0abf923 (patch)
tree0070bb417ec790f467d060a49a98c73d92b6d17d
parentc88a41e408a293b6ebabf5391db95d6e30bdd3df (diff)
downloadpidgin-1b64b38fb416aa1516188b2dcece86e2b0abf923.tar.gz
Added protocol.c and protocols.h
-rw-r--r--libpurple/Makefile.am6
-rw-r--r--libpurple/protocol.c25
-rw-r--r--libpurple/protocol.h2
-rw-r--r--libpurple/protocols.h32
-rw-r--r--libpurple/purple.h.in2
5 files changed, 63 insertions, 4 deletions
diff --git a/libpurple/Makefile.am b/libpurple/Makefile.am
index cb3b9ae7b3..b1c6fcb0c8 100644
--- a/libpurple/Makefile.am
+++ b/libpurple/Makefile.am
@@ -82,6 +82,7 @@ purple_coresources = \
presence.c \
proxy.c \
protocol.c \
+ protocols.c \
request.c \
roomlist.c \
savedstatuses.c \
@@ -153,6 +154,7 @@ purple_coreheaders = \
presence.h \
proxy.h \
protocol.h \
+ protocols.h \
request.h \
roomlist.h \
savedstatuses.h \
@@ -190,7 +192,7 @@ purple_enumheaders = \
connection.h \
conversation.h \
conversationtypes.h \
- protocol.h \
+ protocols.h \
status.h
marshallers.h: marshallers.list
@@ -232,7 +234,7 @@ dbus_exported = dbus-useful.h dbus-define-api.h account.h accounts.h blistnode.h
blistnodetypes.h buddylist.h buddyicon.h connection.h conversation.h \
conversationtypes.h conversations.h core.h ft.h log.h notify.h \
prefs.h presence.h roomlist.h savedstatuses.h smiley.h status.h \
- server.h util.h xmlnode.h protocol.h
+ server.h util.h xmlnode.h protocol.h protocols.h
purple_build_coreheaders = $(addprefix $(srcdir)/, $(purple_coreheaders)) \
$(addprefix $(srcdir)/media/, $(purple_mediaheaders)) \
diff --git a/libpurple/protocol.c b/libpurple/protocol.c
new file mode 100644
index 0000000000..3c682d502e
--- /dev/null
+++ b/libpurple/protocol.c
@@ -0,0 +1,25 @@
+/*
+ * purple
+ *
+ * Purple is the legal property of its developers, whose names are too numerous
+ * to list here. Please refer to the COPYRIGHT file distributed with this
+ * source distribution.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
+ *
+ */
+#include "internal.h"
+#include "protocol.h"
+
diff --git a/libpurple/protocol.h b/libpurple/protocol.h
index 4996d8b33b..6b584ed739 100644
--- a/libpurple/protocol.h
+++ b/libpurple/protocol.h
@@ -1,5 +1,5 @@
/**
- * @file protocol.h Protocol API
+ * @file protocol.h PurpleProtocol and PurpleProtocolInterface API
* @ingroup core
*/
diff --git a/libpurple/protocols.h b/libpurple/protocols.h
new file mode 100644
index 0000000000..31dda09a40
--- /dev/null
+++ b/libpurple/protocols.h
@@ -0,0 +1,32 @@
+/**
+ * @file protocols.h Protocol subsystem API
+ * @ingroup core
+ */
+
+/* purple
+ *
+ * Purple is the legal property of its developers, whose names are too numerous
+ * to list here. Please refer to the COPYRIGHT file distributed with this
+ * source distribution.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
+ */
+
+#ifndef _PURPLE_PROTOCOLS_H_
+#define _PURPLE_PROTOCOLS_H_
+
+#include "protocol.h"
+
+#endif /* _PROTOCOLS_H_ */
diff --git a/libpurple/purple.h.in b/libpurple/purple.h.in
index d06aee85ec..37075c800a 100644
--- a/libpurple/purple.h.in
+++ b/libpurple/purple.h.in
@@ -77,7 +77,7 @@
#include <prefs.h>
#include <presence.h>
#include <proxy.h>
-#include <protocol.h>
+#include <protocols.h>
#include <request.h>
#include <roomlist.h>
#include <savedstatuses.h>