Console Friend Link Feature - Constants

Definition


#include <dwc.h>


enum DWCCfError {
    DWC_CF_ERROR_NONE
    DWC_CF_ERROR_NOFRIENDDATA
    DWC_CF_ERROR_CRC
    DWC_CF_ERROR_PARAM
    DWC_CF_ERROR_DATA_BROKEN
    DWC_CF_ERROR_MSGOBJ_ALREADY_SET
    DWC_CF_ERROR_MSGOBJ_PROTECTED
    DWC_CF_ERROR_MSGOBJ_FULL
    DWC_CF_ERROR_NWC24_INTERNAL
    DWC_CF_ERROR_USERDATA
    DWC_CF_ERROR_MEMORY
    DWC_CF_ERROR_GETINFO
    DWC_CF_ERROR_MAX
};

enum DWCCfMsgType {
    DWC_CF_MSG_TYPE_REQUEST
    DWC_CF_MSG_TYPE_RESPONSE_ACCEPT
    DWC_CF_MSG_TYPE_RESPONSE_DENY
    DWC_CF_MSG_TYPE_REQUEST_REMIND
};

		

Error Codes for Console Friend Library

DWC_CF_ERROR_NONE Succeeded.
DWC_CF_ERROR_NOFRIENDDATA No friend data is attached to the specified message.
DWC_CF_ERROR_CRC The friend code CRC is abnormal.
DWC_CF_ERROR_PARAM Illegal parameter.
DWC_CF_ERROR_DATA_BROKEN The game friend information is corrupted.
DWC_CF_ERROR_MSGOBJ_ALREADY_SET Friend registration information is already appended to NWC24MsgObj.
DWC_CF_ERROR_MSGOBJ_PROTECTED NWC24MsgObj cannot be changed.
DWC_CF_ERROR_MSGOBJ_FULL The limit for appending binary data to NWC24MsgObj has been reached.
DWC_CF_ERROR_NWC24_INTERNAL An NWC24 function internal error.
DWC_CF_ERROR_USERDATA Creation of the friend code from user data has failed.
DWC_CF_ERROR_MEMORY Insufficient memory.
DWC_CF_ERROR_GETINFO Failed to obtain friend's console information.
DWC_CF_ERROR_MAX

Types of Messages Sent

DWC_CF_MSG_TYPE_REQUEST Friend registration request.
DWC_CF_MSG_TYPE_RESPONSE_ACCEPT Response granting a friend registration request.
DWC_CF_MSG_TYPE_RESPONSE_DENY Response denying a friend registration request.
DWC_CF_MSG_TYPE_REQUEST_REMIND A request to remind the user about a friend registration request.
In the current version, this is the same as DWC_CF_MSG_TYPE_REQUEST.

CONFIDENTIAL