#import "StoveSDKNativeInterface.h"

#ifndef GameLogNativeInterface_h
#define GameLogNativeInterface_h

// Native user-info resolver callback provided by Unity (C#).
// Returns a UTF-8 C string (JSON with "userId"/"characterNo"/"worldId"), or NULL.
typedef const char* (*StoveGameLogUserInfoResolver)(void);

#if __cplusplus
STOVE_SDK_EXTERNC
{
#endif /* __cplusplus */

    void stove_game_log_configure(const char *serverUrl,
                                  const char *serviceId,
                                  const char *marketGameId,
                                  const char *environment,
                                  int batchSize,
                                  const char *ip,
                                  const char *gdsJson,
                                  const char *language,
                                  const char *externalId,
                                  StoveGameLogUserInfoResolver userInfoResolver);
    void stove_game_log_add(const char *logEvent, const char *identifier);
    void stove_game_log_flush();

#if __cplusplus
}
#endif /* __cplusplus */

#endif /* GameLogNativeInterface_h */
