1 /*---------------------------------------------------------------------------*
2   Project:  RevolutionDWC public include file
3   File:     ./prof/dwc_prof.h
4 
5   Copyright 2005-2008 Nintendo. All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law. They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13  *---------------------------------------------------------------------------*/
14 #ifndef DWC_PROF_H
15 #define DWC_PROF_H
16 
17 #ifdef __cplusplus
18 extern "C"
19 {
20 #endif //  __cplusplus
21 
22 //=============================================================================
23 //  Definitions
24 //=============================================================================
25 
26 #define DWC_PROF_MAX_WORDSNUM       50
27 
28     /**
29      * Illegal string check states
30      *
31      * Version:  1.4.1:   Initial version.
32      */
33     typedef enum {
34         DWC_PROF_STATE_NOT_INITIALIZED = 0, ///< uninitialized
35         DWC_PROF_STATE_OPERATING,           ///< HTTP communication active
36         DWC_PROF_STATE_SUCCESS,             ///< Illegal string check succeeded
37         DWC_PROF_STATE_FAIL                 ///< Illegal string check failed
38     } DWCProfState;
39 
40     /*
41      * Enumerated type that shows the regions for illegal string check
42      */
43     typedef enum {
44         DWC_PROF_REGION_SELF = 0x00,   // Follows the product code
45         DWC_PROF_REGION_ALL  = 0xff    // All regions
46     } DWCProfRegion;
47 
48 //=============================================================================
49 //  Functions
50 //=============================================================================
51 
52     BOOL DWC_CheckProfanityAsync( const u16 **words,
53                                   int wordsnum,
54                                   const char *reserved,
55                                   int timeout,
56                                   char *result,
57                                   int *badwordsnum);
58     BOOL DWC_CheckProfanityExAsync( const u16 **words,
59                                     int wordsnum,
60                                     const char *reserved,
61                                     int timeout,
62                                     char *result,
63                                     int *badwordsnum,
64                                     DWCProfRegion region);
65     DWCProfState DWC_CheckProfanityProcess( void );
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif
72