SC_UserController_AddAsBuddy()

Adds the user returned by SC_UserController_GetUser() to the buddy list of the session user.

Synopsis:

#include <scoreloop/sc_user_controller.h>
 
SC_Error_t SC_UserController_AddAsBuddy(SC_UserController_h self)

Arguments:

self

SC_UserController instance handle

Library:

libscoreloopcore

Description:

This method adds the user that is returned by SC_UserController_GetUser() to the buddy list of the current session user. It also verifies if the current session user tries to become a buddy of self.

Note that this is an asynchronous call and a callback will be triggered upon success or failure.

Returns:

SC_Error_t A return code (a value of SC_OK indicates success, any other value indicates an error).

See also:

removeAsBuddy

Last modified: 2013-12-23

comments powered by Disqus