#ifndef GNUNET_FRIENDS_LIB_H
#define GNUNET_FRIENDS_LIB_H
+#ifdef __cplusplus
+extern "C"
+{
+#if 0 /* keep Emacsens' auto-indent happy */
+}
+#endif
+#endif
+
#include "gnunet_util_lib.h"
* Signature of a function called on each friend found.
*
* @param cls closure
- * @param friend peer identity of the friend
+ * @param friend_id peer identity of the friend
*/
typedef void (*GNUNET_FRIENDS_Callback)(void *cls,
- const struct GNUNET_PeerIdentity *friend);
+ const struct GNUNET_PeerIdentity *friend_id);
/**
* Add a friend to the friends file.
*
* @param w write handle
- * @param friend friend to add
+ * @param friend_id friend to add
* @return #GNUNET_OK on success, #GNUNET_SYSERR on error
*/
int
GNUNET_FRIENDS_write (struct GNUNET_FRIENDS_Writer *w,
- const struct GNUNET_PeerIdentity *friend);
+ const struct GNUNET_PeerIdentity *friend_id);
+ #if 0 /* keep Emacsens' auto-indent happy */
+{
+#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif