#include <revolution/nwc24.h>
NWC24Err NWC24UpdateFriendInfo( const NWC24FriendInfo* info, u32 index );
Updates the information within the console friend roster at the index position.
ID and status information remain as is. Only some of the information, including the name, is updated. As a result, if an ID that differs from the stored ID is specified, an error will occur.
Note: This function is released for testing during development. Unless you have a special reason, do not incorporate this function into the production version of your application.
info |
The NWC24FriendInfo structure that holds the information to be updated. (Must be 32-byte aligned.) |
index |
The index within the friend roster. |
NWC24_OK: Updated normally.NWC24_ERR_NULL: Data not registered in the specified index location.NWC24_ERR_PROTECTED: Address information located in the specified index location does not match that given by info.NWC24_ERR_ALIGNMENT: The info argument is not 32-byte aligned.NWC24_ERR_INVALID_VALUE: The value of index or info is invalid.NWC24_ERR_LIB_NOT_OPENED: Library not open.
NWC24_ERR_FILE_*: File access error.NWC24_ERR_BROKEN: Friend roster broken.NWC24_ERR_VER_MISMATCH: Friend roster version error.
NWC24ReadFriendInfo, NWC24WriteFriendInfo, NWC24DeleteFriendInfo, NWC24SearchFriendInfoById, NWC24IsFriendInfoThere
2007/04/04 Added a note of caution about using this function in the production version.
2007/02/23 Corrected errors.
2006/10/06 Updated the list of return values.
2006/09/01 Initial version.
CONFIDENTIAL