GOG GALAXY SDK Documentation
InitOptions.h
Go to the documentation of this file.
1 #ifndef GALAXY_INIT_OPTIONS_H
2 #define GALAXY_INIT_OPTIONS_H
3 
8 #include "GalaxyAllocator.h"
9 #include "GalaxyThread.h"
10 
11 #include "stdint.h"
12 #include <cstddef>
13 
14 namespace galaxy
15 {
16  namespace api
17  {
26  struct InitOptions
27  {
44  const char* _clientID,
45  const char* _clientSecret,
46  const char* _configFilePath = ".",
47  GalaxyAllocator* _galaxyAllocator = NULL,
48  const char* _storagePath = NULL,
49  const char* _host = NULL,
50  uint16_t _port = 0,
51  IGalaxyThreadFactory* _galaxyThreadFactory = NULL)
52  : clientID(_clientID)
53  , clientSecret(_clientSecret)
54  , configFilePath(_configFilePath)
55  , storagePath(_storagePath)
56  , galaxyAllocator(_galaxyAllocator)
57  , galaxyThreadFactory(_galaxyThreadFactory)
58  , host(_host)
59  , port(_port)
60  {
61  }
62 
63  const char* clientID;
64  const char* clientSecret;
65  const char* configFilePath;
66  const char* storagePath;
69  const char* host;
70  uint16_t port;
71  };
72 
74  }
75 }
76 
77 #endif
Contains definition of custom memory allocator.
Custom thread spawner for the Galaxy SDK.
Definition: GalaxyThread.h:59
Custom memory allocator for GOG Galaxy SDK.
Definition: GalaxyAllocator.h:51
The group of options used for Init configuration.
Definition: InitOptions.h:27
const char * storagePath
The path to folder for storing internal SDK data. Used only on Android devices.
Definition: InitOptions.h:66
GalaxyAllocator * galaxyAllocator
The custom memory allocator used by GOG Galaxy SDK.
Definition: InitOptions.h:67
const char * clientSecret
The secret of the client.
Definition: InitOptions.h:64
uint16_t port
The local port used to communicate with GOG Galaxy Multiplayer server and other players.
Definition: InitOptions.h:70
const char * clientID
The ID of the client.
Definition: InitOptions.h:63
InitOptions(const char *_clientID, const char *_clientSecret, const char *_configFilePath=".", GalaxyAllocator *_galaxyAllocator=NULL, const char *_storagePath=NULL, const char *_host=NULL, uint16_t _port=0, IGalaxyThreadFactory *_galaxyThreadFactory=NULL)
InitOptions constructor.
Definition: InitOptions.h:43
IGalaxyThreadFactory * galaxyThreadFactory
The custom thread factory used by GOG Galaxy SDK to spawn internal threads.
Definition: InitOptions.h:68
const char * configFilePath
The path to folder which contains configuration files.
Definition: InitOptions.h:65
const char * host
The local IP address this peer would bind to.
Definition: InitOptions.h:69