DayZ 1.24
Loading...
Searching...
No Matches
BackendApi.c File Reference

Go to the source code of this file.

Classes

class  BackendCallback
 
class  BackendApi
 

Enumerations

enum  EBackendError {
  EBERR_OK , EBERR_UNKNOWN , EBERR_DISABLED , EBERR_INVALID_STATE ,
  EBERR_BUSY , EBERR_ALREADY_OFFLINE , EBERR_ALREADY_ONLINE , EBERR_ALREADY_REQUESTED ,
  EBERR_LOGIN_FAILED , EBERR_AUTH_FAILED , EBERR_LOGIN_SUCCESS , EBERR_AUTH_SUCCESS ,
  EBERR_CONFIGURATION_GET , EBERR_CEPROFILE_GET , EBERR_CHARACTER_GET , EBERR_CHARACTER_UPDATE
}
 Backend error. More...
 
enum  EBackendRequest { EBREQ_USER_Login , EBREQ_USER_Auth }
 Backend request. More...
 
enum  EBackendCredentials { EBCRED_NAME , EBCRED_PWD , EBCRED_BASEURI }
 Credential parameters. More...
 

Functions

proto native BackendApi GetBackendApi ()
 

Enumeration Type Documentation

◆ EBackendCredentials

Credential parameters.

Enumerator
EBCRED_NAME 
EBCRED_PWD 
EBCRED_BASEURI 

Definition at line 75 of file BackendApi.c.

76{
80};
@ EBCRED_PWD
Definition BackendApi.c:78
@ EBCRED_NAME
Definition BackendApi.c:77
@ EBCRED_BASEURI
Definition BackendApi.c:79

◆ EBackendError

Backend error.

Enumerator
EBERR_OK 
EBERR_UNKNOWN 
EBERR_DISABLED 
EBERR_INVALID_STATE 
EBERR_BUSY 
EBERR_ALREADY_OFFLINE 
EBERR_ALREADY_ONLINE 
EBERR_ALREADY_REQUESTED 
EBERR_LOGIN_FAILED 
EBERR_AUTH_FAILED 
EBERR_LOGIN_SUCCESS 
EBERR_AUTH_SUCCESS 
EBERR_CONFIGURATION_GET 
EBERR_CEPROFILE_GET 
EBERR_CHARACTER_GET 
EBERR_CHARACTER_UPDATE 

Definition at line 6 of file BackendApi.c.

7{
8 EBERR_OK, // all OK
9 EBERR_UNKNOWN, // unknown error
10 EBERR_DISABLED, // backend is disabled
11 EBERR_INVALID_STATE, // called request from state where it is not possible (ie. reading data before logon and such)
12 EBERR_BUSY, // no request can be called - login/ auth in process
13 EBERR_ALREADY_OFFLINE, // state is already active
14 EBERR_ALREADY_ONLINE, // state is already active
15 EBERR_ALREADY_REQUESTED, // state already requested once!
16 EBERR_LOGIN_FAILED, // failed to logon
17 EBERR_AUTH_FAILED, // failed to authenticate
18 EBERR_LOGIN_SUCCESS, // logon successfull
19 EBERR_AUTH_SUCCESS, // authenticate successfull
20 EBERR_CONFIGURATION_GET, // configuration received
21 EBERR_CEPROFILE_GET, // CE profile configuration received
22 EBERR_CHARACTER_GET, // character data receieved
23 EBERR_CHARACTER_UPDATE, // character update done
24};
@ EBERR_LOGIN_SUCCESS
Definition BackendApi.c:18
@ EBERR_INVALID_STATE
Definition BackendApi.c:11
@ EBERR_CHARACTER_UPDATE
Definition BackendApi.c:23
@ EBERR_ALREADY_ONLINE
Definition BackendApi.c:14
@ EBERR_DISABLED
Definition BackendApi.c:10
@ EBERR_OK
Definition BackendApi.c:8
@ EBERR_CHARACTER_GET
Definition BackendApi.c:22
@ EBERR_AUTH_FAILED
Definition BackendApi.c:17
@ EBERR_CEPROFILE_GET
Definition BackendApi.c:21
@ EBERR_ALREADY_REQUESTED
Definition BackendApi.c:15
@ EBERR_ALREADY_OFFLINE
Definition BackendApi.c:13
@ EBERR_BUSY
Definition BackendApi.c:12
@ EBERR_AUTH_SUCCESS
Definition BackendApi.c:19
@ EBERR_UNKNOWN
Definition BackendApi.c:9
@ EBERR_LOGIN_FAILED
Definition BackendApi.c:16
@ EBERR_CONFIGURATION_GET
Definition BackendApi.c:20

◆ EBackendRequest

Backend request.

Enumerator
EBREQ_USER_Login 
EBREQ_USER_Auth 

Definition at line 27 of file BackendApi.c.

28{
29 /* // game api
30 EBREQ_GAME_Test, // environment test - dummy data read
31 EBREQ_GAME_World, // static world configuration read
32 EBREQ_GAME_CEProfile,
33 EBREQ_GAME_CharacterGet, // character data read
34 EBREQ_GAME_CharacterUpdate, // character data update
35 // #if BACKENDAPI_DEV_CHARACTER
36 EBREQ_GAME_DevCharacterGet, // dev character data read
37 EBREQ_GAME_DevCharacterUpdate, // dev character data update
38 // #endif
39 EBREQ_GAME_Heartbeat,*/
40 // user api request <> response
43 /* // lobby api request <> response
44 EBREQ_LOBBY_RoomsRegister,
45 EBREQ_LOBBY_RoomsJoin,
46 EBREQ_LOBBY_RoomsAcceptPlayer,
47 EBREQ_LOBBY_RoomsHeartBeat,
48 EBREQ_LOBBY_RoomsUpdate,
49 EBREQ_LOBBY_RoomsRemovePlayer,
50 EBREQ_LOBBY_RoomsSearch,
51 EBREQ_LOBBY_RoomsGetByIds,
52 EBREQ_LOBBY_RoomsGetByHostIds,
53 EBREQ_LOBBY_GetActiveScenarios,
54 // storage api request <> response
55 EBREQ_STORAGE_GetFileTempURL,
56 EBREQ_STORAGE_GetFileTempURLS2S,
57 EBREQ_STORAGE_GetFile,
58 EBREQ_STORAGE_DeleteFile,
59 EBREQ_STORAGE_GetFileS2S,
60 EBREQ_STORAGE_DeleteFileS2S,
61 EBREQ_STORAGE_PatchFileS2S,
62 EBREQ_STORAGE_Upload,
63 EBREQ_STORAGE_UploadS2S,
64 EBREQ_STORAGE_UploadZip,
65 EBREQ_STORAGE_UploadZipS2S,
66 EBREQ_STORAGE_Limits,
67 EBREQ_STORAGE_LimitsS2S,
68 // feedback request <> response
69 // #if ONLINE_SLACKAPI
70 EBREQ_SLACKAPI_PostMessage,
71 // #endif*/
72};
@ EBREQ_USER_Login
Definition BackendApi.c:41
@ EBREQ_USER_Auth
Definition BackendApi.c:42

Function Documentation

◆ GetBackendApi()

proto native BackendApi GetBackendApi ( )