aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2013-06-12 17:35:56 +0000
committerGabor X Toth <*@tg-x.net>2013-06-12 17:35:56 +0000
commit8910dd28ca7c3eb7e66d1dd35047f8ad4086f18b (patch)
tree6d1fcaa40140cd9cbb4c0528dd031e0f45214036 /src/include
parentddaa74459d323d7b8a51809c54f0b7fa122f3150 (diff)
downloadgnunet-8910dd28ca7c3eb7e66d1dd35047f8ad4086f18b.tar.gz
gnunet-8910dd28ca7c3eb7e66d1dd35047f8ad4086f18b.zip
psyc apis
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_multicast_service.h20
-rw-r--r--src/include/gnunet_psyc_service.h20
-rw-r--r--src/include/gnunet_psycstore_service.h59
-rw-r--r--src/include/gnunet_social_service.h65
4 files changed, 144 insertions, 20 deletions
diff --git a/src/include/gnunet_multicast_service.h b/src/include/gnunet_multicast_service.h
index 9573f3e08..da0e09e2f 100644
--- a/src/include/gnunet_multicast_service.h
+++ b/src/include/gnunet_multicast_service.h
@@ -416,10 +416,10 @@ struct GNUNET_MULTICAST_MulticastRequest;
416 * @return NULL on error (i.e. request already pending) 416 * @return NULL on error (i.e. request already pending)
417 */ 417 */
418struct GNUNET_MULTICAST_MulticastRequest * 418struct GNUNET_MULTICAST_MulticastRequest *
419GNUNET_MULTICAST_origin_send_to_all (struct GNUNET_MULTICAST_Origin *origin, 419GNUNET_MULTICAST_origin_to_all (struct GNUNET_MULTICAST_Origin *origin,
420 size_t size, 420 size_t size,
421 GNUNET_CONNECTION_TransmitReadyNotify cb, 421 GNUNET_CONNECTION_TransmitReadyNotify cb,
422 void *cb_cls); 422 void *cb_cls);
423 423
424 424
425/** 425/**
@@ -428,7 +428,7 @@ GNUNET_MULTICAST_origin_send_to_all (struct GNUNET_MULTICAST_Origin *origin,
428 * @param mr request to cancel 428 * @param mr request to cancel
429 */ 429 */
430void 430void
431GNUNET_MULTICAST_origin_send_to_all_cancel (struct GNUNET_MULTICAST_MulticastRequest *mr); 431GNUNET_MULTICAST_origin_to_all_cancel (struct GNUNET_MULTICAST_MulticastRequest *mr);
432 432
433 433
434/** 434/**
@@ -546,10 +546,10 @@ struct GNUNET_MULTICAST_ResponseRequest;
546 * @return handle to cancel request, NULL on error (i.e. request already pending) 546 * @return handle to cancel request, NULL on error (i.e. request already pending)
547 */ 547 */
548struct GNUNET_MULTICAST_ResponseRequest * 548struct GNUNET_MULTICAST_ResponseRequest *
549GNUNET_MULTICAST_member_message_to_origin (struct GNUNET_MULTICAST_Member *member, 549GNUNET_MULTICAST_member_to_origin (struct GNUNET_MULTICAST_Member *member,
550 size_t size, 550 size_t size,
551 GNUNET_CONNECTION_TransmitReadyNotify cb, 551 GNUNET_CONNECTION_TransmitReadyNotify cb,
552 void *cb_cls); 552 void *cb_cls);
553 553
554 554
555/** 555/**
@@ -558,7 +558,7 @@ GNUNET_MULTICAST_member_message_to_origin (struct GNUNET_MULTICAST_Member *membe
558 * @param rr request to cancel 558 * @param rr request to cancel
559 */ 559 */
560void 560void
561GNUNET_MULTICAST_member_message_to_origin_cancel (struct GNUNET_MULTICAST_ResponseRequest *rr); 561GNUNET_MULTICAST_member_to_origin_cancel (struct GNUNET_MULTICAST_ResponseRequest *rr);
562 562
563 563
564 564
diff --git a/src/include/gnunet_psyc_service.h b/src/include/gnunet_psyc_service.h
index f53c9437f..8116e3d93 100644
--- a/src/include/gnunet_psyc_service.h
+++ b/src/include/gnunet_psyc_service.h
@@ -230,7 +230,7 @@ enum GNUNET_PSYC_Operator
230 * values that require streaming must only be passed as the stream 230 * values that require streaming must only be passed as the stream
231 * arguments to methods. State updates might not be transmitted to 231 * arguments to methods. State updates might not be transmitted to
232 * group members until the next call to 232 * group members until the next call to
233 * 'GNUNET_PSYC_channel_broadcast_call_method'. Variable updates must 233 * 'GNUNET_PSYC_channel_notify_transmit_ready'. Variable updates must
234 * be given just before the call to the respective method that needs 234 * be given just before the call to the respective method that needs
235 * the variables. 235 * the variables.
236 * 236 *
@@ -366,10 +366,10 @@ GNUNET_PSYC_member_get_group (struct GNUNET_PSYC_Member *member);
366 * @param group_generation the generation ID where the change went into effect 366 * @param group_generation the generation ID where the change went into effect
367 */ 367 */
368void 368void
369GNUNET_PSYC_group_member_admit (struct GNUNET_PSYC_Group *group, 369GNUNET_PSYC_group_member_add (struct GNUNET_PSYC_Group *group,
370 const struct GNUNET_PeerIdentity *member, 370 const struct GNUNET_PeerIdentity *member,
371 uint64_t message_id, 371 uint64_t message_id,
372 uint64_t group_generation); 372 uint64_t group_generation);
373 373
374 374
375/** 375/**
@@ -393,10 +393,10 @@ GNUNET_PSYC_group_member_admit (struct GNUNET_PSYC_Group *group,
393 * @param group_generation the generation ID where the change went into effect 393 * @param group_generation the generation ID where the change went into effect
394 */ 394 */
395void 395void
396GNUNET_PSYC_group_member_kick (struct GNUNET_PSYC_Group *group, 396GNUNET_PSYC_group_member_remove (struct GNUNET_PSYC_Group *group,
397 const struct GNUNET_PeerIdentity *member, 397 const struct GNUNET_PeerIdentity *member,
398 uint64_t message_id, 398 uint64_t message_id,
399 uint64_t group_generation); 399 uint64_t group_generation);
400 400
401 401
402/** 402/**
@@ -507,7 +507,7 @@ struct GNUNET_PSYC_OriginTransmitHandle;
507 507
508 508
509/** 509/**
510 * Request a message to be send to the channel host. 510 * Request a message to be sent to the channel origin.
511 * 511 *
512 * @param member membership handle 512 * @param member membership handle
513 * @param method_name which (PSYC) method should be invoked (on host) 513 * @param method_name which (PSYC) method should be invoked (on host)
diff --git a/src/include/gnunet_psycstore_service.h b/src/include/gnunet_psycstore_service.h
new file mode 100644
index 000000000..07013c9a3
--- /dev/null
+++ b/src/include/gnunet_psycstore_service.h
@@ -0,0 +1,59 @@
1/*
2 This file is part of GNUnet.
3 (C) 2009, 2010 Christian Grothoff (and other contributing authors)
4
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19*/
20
21/**
22 * @file include/gnunet_psycstore_service.h
23 * @brief PSYCstore service; implements persistent storage for the PSYC service
24 * @author tg
25 */
26#ifndef GNUNET_PSYCSTORE_SERVICE_H
27#define GNUNET_PSYCSTORE_SERVICE_H
28
29#ifdef __cplusplus
30extern "C"
31{no
32#if 0 /* keep Emacsens' auto-indent happy */
33}
34#endif
35#endif
36
37#include "gnunet_util_lib.h"
38
39/**
40 * Version number of GNUnet PSYCstore API.
41 */
42#define GNUNET_PSYCSTORE_VERSION 0x00000000
43
44/**
45 * Handle for a PSYCstore
46 */
47struct GNUNET_PSYCSTORE_Handle;
48
49
50#if 0 /* keep Emacsens' auto-indent happy */
51{
52#endif
53#ifdef __cplusplus
54}
55#endif
56
57/* ifndef GNUNET_SOCIAL_SERVICE_H */
58#endif
59/* end of gnunet_social_service.h */
diff --git a/src/include/gnunet_social_service.h b/src/include/gnunet_social_service.h
new file mode 100644
index 000000000..366bc0f4f
--- /dev/null
+++ b/src/include/gnunet_social_service.h
@@ -0,0 +1,65 @@
1/*
2 This file is part of GNUnet.
3 (C) 2009, 2010 Christian Grothoff (and other contributing authors)
4
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19*/
20
21/**
22 * @file include/gnunet_social_service.h
23 * @brief Social service; implements social functionality using the PSYC service
24 * @author tg
25 */
26#ifndef GNUNET_SOCIAL_SERVICE_H
27#define GNUNET_SOCIAL_SERVICE_H
28
29#ifdef __cplusplus
30extern "C"
31{
32#if 0 /* keep Emacsens' auto-indent happy */
33}
34#endif
35#endif
36
37#include "gnunet_util_lib.h"
38#include "gnunet_psyc_service.h"
39
40/**
41 * Version number of GNUnet Social API.
42 */
43#define GNUNET_SOCIAL_VERSION 0x00000000
44
45/**
46 * Handle for a social channel
47 */
48struct GNUNET_SOCIAL_Channel;
49
50/**
51 * Handle for a social client
52 */
53struct GNUNET_SOCIAL_Client;
54
55
56#if 0 /* keep Emacsens' auto-indent happy */
57{
58#endif
59#ifdef __cplusplus
60}
61#endif
62
63/* ifndef GNUNET_SOCIAL_SERVICE_H */
64#endif
65/* end of gnunet_social_service.h */