aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2013-08-18 10:04:43 +0000
committerGabor X Toth <*@tg-x.net>2013-08-18 10:04:43 +0000
commite26da4c9d813121eac4473465349f68349beaf62 (patch)
treed453874777a0625ef2b05320e3ffdc23c1c07cb9
parente1ec52bbdd5faeb0254ff24cd7ec1a9ec45ffb1e (diff)
downloadgnunet-e26da4c9d813121eac4473465349f68349beaf62.tar.gz
gnunet-e26da4c9d813121eac4473465349f68349beaf62.zip
social: place_look args
-rw-r--r--src/include/gnunet_social_service.h29
1 files changed, 9 insertions, 20 deletions
diff --git a/src/include/gnunet_social_service.h b/src/include/gnunet_social_service.h
index 5f7d8dd5b..fd20536a4 100644
--- a/src/include/gnunet_social_service.h
+++ b/src/include/gnunet_social_service.h
@@ -487,10 +487,12 @@ GNUNET_SOCIAL_place_watch_cancel (struct GNUNET_SOCIAL_WatchHandle *wh);
487 487
488struct GNUNET_SOCIAL_LookHandle; 488struct GNUNET_SOCIAL_LookHandle;
489 489
490
490/** 491/**
491 * Look at all objects in the place. 492 * Look at objects in the place with a matching name prefix.
492 * 493 *
493 * @param place The place to look its objects at. 494 * @param place The place to look its objects at.
495 * @param name_prefix Look at objects with names beginning with this value.
494 * @param state_cb Function to call for each object found. 496 * @param state_cb Function to call for each object found.
495 * @param state_cb_cls Closure for callback function. 497 * @param state_cb_cls Closure for callback function.
496 * 498 *
@@ -498,28 +500,12 @@ struct GNUNET_SOCIAL_LookHandle;
498 */ 500 */
499struct GNUNET_SOCIAL_LookHandle * 501struct GNUNET_SOCIAL_LookHandle *
500GNUNET_SOCIAL_place_look (struct GNUNET_SOCIAL_Place *place, 502GNUNET_SOCIAL_place_look (struct GNUNET_SOCIAL_Place *place,
503 const char *name_prefix,
501 GNUNET_PSYC_StateCallback state_cb, 504 GNUNET_PSYC_StateCallback state_cb,
502 void *state_cb_cls); 505 void *state_cb_cls);
503 506
504 507
505/** 508/**
506 * Look at matching objects in the place.
507 *
508 * @param place The place to look its objects at.
509 * @param object_filter Only look at objects with names beginning with this filter value.
510 * @param state_cb Function to call for each object found.
511 * @param state_cb_cls Closure for callback function.
512 *
513 * @return Handle that can be used to stop looking at objects.
514 */
515struct GNUNET_SOCIAL_LookHandle *
516GNUNET_SOCIAL_place_look_for (struct GNUNET_SOCIAL_Place *place,
517 const char *object_filter,
518 GNUNET_PSYC_StateCallback state_cb,
519 void *state_cb_cls);
520
521
522/**
523 * Stop looking at objects. 509 * Stop looking at objects.
524 * 510 *
525 * @param lh Look handle to stop. 511 * @param lh Look handle to stop.
@@ -532,14 +518,17 @@ GNUNET_SOCIAL_place_look_cancel (struct GNUNET_SOCIAL_LookHandle *lh);
532/** 518/**
533 * Look at a particular object in the place. 519 * Look at a particular object in the place.
534 * 520 *
521 * The best matching object is returned (its name might be less specific than
522 * what was requested).
523 *
535 * @param place The place to look the object at. 524 * @param place The place to look the object at.
536 * @param object_name Full name of the object. 525 * @param full_name Full name of the object.
537 * @param value_size Set to the size of the returned value. 526 * @param value_size Set to the size of the returned value.
538 * @return NULL if there is no such object at this place. 527 * @return NULL if there is no such object at this place.
539 */ 528 */
540const void * 529const void *
541GNUNET_SOCIAL_place_look_at (struct GNUNET_SOCIAL_Place *place, 530GNUNET_SOCIAL_place_look_at (struct GNUNET_SOCIAL_Place *place,
542 const char *object_name, 531 const char *full_name,
543 size_t *value_size); 532 size_t *value_size);
544 533
545 534