[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r6506 - GNUnet/src/applications/chat
From: |
gnunet |
Subject: |
[GNUnet-SVN] r6506 - GNUnet/src/applications/chat |
Date: |
Sun, 2 Mar 2008 00:58:28 -0700 (MST) |
Author: grothoff
Date: 2008-03-02 00:58:28 -0700 (Sun, 02 Mar 2008)
New Revision: 6506
Added:
GNUnet/src/applications/chat/chat_p2p.c
Modified:
GNUnet/src/applications/chat/Makefile.am
GNUnet/src/applications/chat/chat_p2p.h
Log:
headers and C code
Modified: GNUnet/src/applications/chat/Makefile.am
===================================================================
--- GNUnet/src/applications/chat/Makefile.am 2008-03-02 07:53:26 UTC (rev
6505)
+++ GNUnet/src/applications/chat/Makefile.am 2008-03-02 07:58:28 UTC (rev
6506)
@@ -25,8 +25,8 @@
$(top_builddir)/src/util/libgnunetutil.la
libgnunetmodule_chat_la_SOURCES = \
- chat.c \
- chat.h
+ chat.c chat.h \
+ chat_p2p.c chat_p2p.h
libgnunetmodule_chat_la_LIBADD = \
$(top_builddir)/src/util/libgnunetutil.la
libgnunetmodule_chat_la_LDFLAGS = \
Added: GNUnet/src/applications/chat/chat_p2p.c
===================================================================
--- GNUnet/src/applications/chat/chat_p2p.c (rev 0)
+++ GNUnet/src/applications/chat/chat_p2p.c 2008-03-02 07:58:28 UTC (rev
6506)
@@ -0,0 +1,57 @@
+/*
+ This file is part of GNUnet.
+ (C) 2008 Christian Grothoff (and other contributing authors)
+
+ GNUnet 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, or (at your
+ option) any later version.
+
+ GNUnet 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 GNUnet; see the file COPYING. If not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+*/
+
+/**
+ * @author Nathan Evans
+ * @file applications/chat/chat_p2p.c
+ */
+#include "chat_p2p.h"
+
+int
+p2pHandleChatJoinRequest (struct GNUNET_ClientHandle *client,
+ const GNUNET_MessageHeader * message)
+{
+ return GNUNET_SYSERR;
+}
+
+int
+p2pHandleChatMSG (struct GNUNET_ClientHandle *client,
+ const GNUNET_MessageHeader * message)
+{
+ return GNUNET_SYSERR;
+}
+
+int
+p2pSendChatMSG (const GNUNET_MessageHeader *message)
+{
+ return GNUNET_SYSERR;
+}
+
+int
+p2pGetRoomList()
+{
+ return GNUNET_SYSERR;
+}
+
+int
+p2pSendRoomList()
+{
+ return GNUNET_SYSERR;
+}
Property changes on: GNUnet/src/applications/chat/chat_p2p.c
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: GNUnet/src/applications/chat/chat_p2p.h
===================================================================
--- GNUnet/src/applications/chat/chat_p2p.h 2008-03-02 07:53:26 UTC (rev
6505)
+++ GNUnet/src/applications/chat/chat_p2p.h 2008-03-02 07:58:28 UTC (rev
6506)
@@ -21,41 +21,41 @@
/**
* @author Nathan Evans
* @file applications/chat/chat_p2p.h
- **/
-#ifndef CHATP2P_H_
-#define CHATP2P_H_
+ *
+ * TODO:
+ * - change all GNUNET_MessageHandler arguments
+ * to the specific interesting values (chat_p2p.c
+ * should not have to parse them again -- chat.c already did!);
+ * Also, that way, this API becomes independent of
+ * changes to the CS-protocol!
+ * - define callbacks for how the P2P code will notify CS
+ * about new messages / users joining the room, etc.
+ * - instead of passing the ClientHandle, pass something useful
+ * like the private RSA key or so.
+ *
+ */
+#ifndef CHATP2P_H
+#define CHATP2P_H
-static int
+#include "chat.h"
+
+int
p2pHandleChatJoinRequest (struct GNUNET_ClientHandle *client,
- const GNUNET_MessageHeader * message)
-{
- return GNUNET_SYSERR;
-}
+ const GNUNET_MessageHeader * message);
-static int
+int
p2pHandleChatMSG (struct GNUNET_ClientHandle *client,
- const GNUNET_MessageHeader * message)
-{
- return GNUNET_SYSERR;
-}
+ const GNUNET_MessageHeader * message);
-static int
-p2pSendChatMSG (const GNUNET_MessageHeader *message)
-{
- return GNUNET_SYSERR;
-}
+int
+p2pSendChatMSG (const GNUNET_MessageHeader *message);
-static int
-p2pGetRoomList()
-{
- return GNUNET_SYSERR;
-}
+int
+p2pGetRoomList(void);
-static int
-p2pSendRoomList()
-{
- return GNUNET_SYSERR;
-}
-#endif /*CHATP2P_H_*/
+int
+p2pSendRoomList(void);
+#endif
+
/* end of chat_p2p.h */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r6506 - GNUnet/src/applications/chat,
gnunet <=