QTfrontend/util/platform/xfiregameclient.h
changeset 8381 588a8e6e2041
parent 2920 5cf48744a700
equal deleted inserted replaced
8380:0b375a3ceaa0 8381:588a8e6e2041
       
     1 /* This file is NOT open source. See "license.txt" to read the full license provided with the Xfire SDK. */
       
     2 
       
     3 #ifndef __XFIREGAMECLIENT_H__
       
     4 #define __XFIREGAMECLIENT_H__
       
     5 
       
     6 #ifdef __cplusplus
       
     7 extern "C" {
       
     8 #endif
       
     9 
       
    10 /*
       
    11 **  XfireIsLoaded()
       
    12 **
       
    13 **  returns 1 if application can talk to Xfire, 0 otherwise
       
    14 */
       
    15 int XfireIsLoaded();
       
    16 
       
    17 /*
       
    18 **  XfireSetCustomGameDataA()
       
    19 **
       
    20 **  ANSI version to tell xfire of custom game data
       
    21 */
       
    22 int XfireSetCustomGameDataA(int num_keys, const char **keys, const char **values);
       
    23 
       
    24 /*
       
    25 **  XfireSetCustomGameDataA()
       
    26 **
       
    27 **  UNICODE version to tell xfire of custom game data
       
    28 */
       
    29 int XfireSetCustomGameDataW(int num_keys, const wchar_t **keys, const wchar_t **values);
       
    30 
       
    31 /*
       
    32 **  XfireSetCustomGameDataUTF8()
       
    33 **
       
    34 **  UTF8 version to tell xfire of custom game data
       
    35 */
       
    36 int XfireSetCustomGameDataUTF8(int num_keys, const char **keys, const char **values);
       
    37 
       
    38 #ifdef UNICODE
       
    39 #define XfireSetCustomGameData XfireSetCustomGameDataW
       
    40 #else
       
    41 #define XfireSetCustomGameData XfireSetCustomGameDataA
       
    42 #endif
       
    43 
       
    44 
       
    45 #ifdef __cplusplus
       
    46 }
       
    47 #endif
       
    48 
       
    49 #endif /* __XFIREGAMECLIENT_H__ */