NWC24 Message Search Function

Introduction

The NWC24 message search function searches the management information in the message box, finds those message objects that meet certain specified conditions and then expands the obtained results in an array using a simple procedure.

Basic Operations

For example, to obtain four NWC24MsgObj messages in the inbox, use the following process:

NWC24MsgObj msgObjArray[4];

void GetMsgObjs( void )
{
    u32    numStored, numRemain;

    NWC24InitSearchConds();
    NWC24SearchMsgs(msgObjArray, 4, &numStored, &numRemain);
}

By doing this, the data corresponding to the message in the inbox is stored in NWC24MsgObj type msgObjArray. The actual number obtained in the array is returned in numStored, specified with the third argument of NWC24SearchMsgs() and the remainder is returned in numRemain. When a numerical value equal to or greater than 1 is returned in numRemain, calling NWC24SearchMsgs() again allows the remaining portion to be obtained in the array. (If called until numRemain becomes zero, all of the messages in the inbox can be obtained.)

NWC24InitSearchConds() must be called to redo obtaining messages from the beginning.

Simple Search Feature

Search can also occur by specifying simple filtering conditions.

NWC24MsgObj msgObjArray[4];

void SearchMsgObjs( void )
{
    u32          numStored, numRemain;

    NWC24InitSearchConds();
    NWC24SetSearchCondFromAddrId(0123456701234567ULL);
    NWC24SearchMsgs(msgObjArray, 4, &numStored, &numRemain);
}

By doing this, only the Wii messages from the specified Wii number are obtained to the array.

In addition, the following search conditions can currently be specified:

Several conditions may be specified. In this case, they are refined using the AND condition. To redo the search with different conditions, be sure to first call NWC24InitSearchConds(). The conditions must all be cleared once.

By default, the Inbox is searched for all messages that can be read by the application and are not Public messages. This includes messages bound for the Message Board and for other applications, which other applications have permission to read.

Message Search API

The following functions are provided as an API for performing message searches.

For details, see the reference manual for each function.

Revision History

2007/09/03 Added the NWC24SetSearchCondPublic function.
2007/07/26 Added text about the search for tag numbers.
2007/05/03 Revised omissions (in original Japanese).
2006/09/01 Initial version.


CONFIDENTIAL