aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_social_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_social_service.h')
-rw-r--r--src/include/gnunet_social_service.h46
1 files changed, 30 insertions, 16 deletions
diff --git a/src/include/gnunet_social_service.h b/src/include/gnunet_social_service.h
index ca1578820..66427a072 100644
--- a/src/include/gnunet_social_service.h
+++ b/src/include/gnunet_social_service.h
@@ -287,12 +287,18 @@ typedef void
287/** 287/**
288 * Function called after the host entered the place. 288 * Function called after the host entered the place.
289 * 289 *
290 * @param cls Closure. 290 * @param cls
291 * @param max_message_id Last message ID sent to the channel. 291 * Closure.
292 * Or 0 if no messages have been sent to the place yet. 292 * @param result
293 * #GNUNET_OK on success, or
294 * #GNUNET_SYSERR on error.
295 * @param max_message_id
296 * Last message ID sent to the channel.
297 * Or 0 if no messages have been sent to the place yet.
293 */ 298 */
294typedef void 299typedef void
295(*GNUNET_SOCIAL_HostEnterCallback) (void *cls, uint64_t max_message_id); 300(*GNUNET_SOCIAL_HostEnterCallback) (void *cls, int result,
301 uint64_t max_message_id);
296 302
297 303
298/** 304/**
@@ -793,18 +799,22 @@ struct GNUNET_SOCIAL_WatchHandle;
793/** 799/**
794 * Watch a place for changed objects. 800 * Watch a place for changed objects.
795 * 801 *
796 * @param place Place to watch. 802 * @param place
797 * @param object_filter Object prefix to match. 803 * Place to watch.
798 * @param state_cb Function to call when an object/state changes. 804 * @param object_filter
799 * @param state_cb_cls Closure for callback. 805 * Object prefix to match.
806 * @param state_var_cb
807 * Function to call when an object/state var changes.
808 * @param cls
809 * Closure for callback.
800 * 810 *
801 * @return Handle that can be used to cancel watching. 811 * @return Handle that can be used to cancel watching.
802 */ 812 */
803struct GNUNET_SOCIAL_WatchHandle * 813struct GNUNET_SOCIAL_WatchHandle *
804GNUNET_SOCIAL_place_watch (struct GNUNET_SOCIAL_Place *place, 814GNUNET_SOCIAL_place_watch (struct GNUNET_SOCIAL_Place *place,
805 const char *object_filter, 815 const char *object_filter,
806 GNUNET_PSYC_StateCallback state_cb, 816 GNUNET_PSYC_StateVarCallback state_var_cb,
807 void *state_cb_cls); 817 void *cls);
808 818
809 819
810/** 820/**
@@ -822,18 +832,22 @@ struct GNUNET_SOCIAL_LookHandle;
822/** 832/**
823 * Look at objects in the place with a matching name prefix. 833 * Look at objects in the place with a matching name prefix.
824 * 834 *
825 * @param place The place to look its objects at. 835 * @param place
826 * @param name_prefix Look at objects with names beginning with this value. 836 * The place to look its objects at.
827 * @param state_cb Function to call for each object found. 837 * @param name_prefix
828 * @param state_cb_cls Closure for callback function. 838 * Look at objects with names beginning with this value.
839 * @param state_var_cb
840 * Function to call for each object found.
841 * @param cls
842 * Closure for callback function.
829 * 843 *
830 * @return Handle that can be used to stop looking at objects. 844 * @return Handle that can be used to stop looking at objects.
831 */ 845 */
832struct GNUNET_SOCIAL_LookHandle * 846struct GNUNET_SOCIAL_LookHandle *
833GNUNET_SOCIAL_place_look (struct GNUNET_SOCIAL_Place *place, 847GNUNET_SOCIAL_place_look (struct GNUNET_SOCIAL_Place *place,
834 const char *name_prefix, 848 const char *name_prefix,
835 GNUNET_PSYC_StateCallback state_cb, 849 GNUNET_PSYC_StateVarCallback state_var_cb,
836 void *state_cb_cls); 850 void *cls);
837 851
838 852
839/** 853/**