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

Go to the source code of this file.

Classes

class  RestCallback
 
class  RestContext
 
class  RestApi
 

Enumerations

enum  ERestResultState {
  EREST_EMPTY , EREST_PENDING , EREST_FEEDING , EREST_SUCCESS ,
  EREST_PROCESSED , EREST_ERROR , EREST_ERROR_CLIENTERROR , EREST_ERROR_SERVERERROR ,
  EREST_ERROR_APPERROR , EREST_ERROR_TIMEOUT , EREST_ERROR_NOTIMPLEMENTED , EREST_ERROR_UNKNOWN
}
 
enum  ERestOption { ERESTOPTION_UNKNOWN , ERESTOPTION_READOPERATION , ERESTOPTION_CONNECTION }
 

Functions

proto native RestApi CreateRestApi ()
 
proto native void DestroyRestApi ()
 
proto native RestApi GetRestApi ()
 

Enumeration Type Documentation

◆ ERestOption

Enumerator
ERESTOPTION_UNKNOWN 
ERESTOPTION_READOPERATION 
ERESTOPTION_CONNECTION 

Definition at line 28 of file RestApi.c.

29{
30 ERESTOPTION_UNKNOWN, // invalid option
31
32 ERESTOPTION_READOPERATION, // read operation timeout (default 10sec)
33 ERESTOPTION_CONNECTION, // connection timeout (default 10sec)
34 // note: limit for timeout is between <3 .. 120> seconds, you cannot exceed this value
35};
@ ERESTOPTION_READOPERATION
Definition RestApi.c:32
@ ERESTOPTION_UNKNOWN
Definition RestApi.c:30
@ ERESTOPTION_CONNECTION
Definition RestApi.c:33

◆ ERestResultState

Enumerator
EREST_EMPTY 
EREST_PENDING 
EREST_FEEDING 
EREST_SUCCESS 
EREST_PROCESSED 
EREST_ERROR 
EREST_ERROR_CLIENTERROR 
EREST_ERROR_SERVERERROR 
EREST_ERROR_APPERROR 
EREST_ERROR_TIMEOUT 
EREST_ERROR_NOTIMPLEMENTED 
EREST_ERROR_UNKNOWN 

Definition at line 8 of file RestApi.c.

9{
10 EREST_EMPTY, // not initialized
11 EREST_PENDING, // awaiting processing
12 EREST_FEEDING, // awaiting incoming data
13 EREST_SUCCESS, // result and/ or data are ready (success), awaiting data processing to be finished (no longer blocking queue processing)
14 EREST_PROCESSED, // finished (either successfully or with failure) and eill be removed ASAP
15
16 EREST_ERROR, // (state >= EREST_ERROR) == error happened
17 EREST_ERROR_CLIENTERROR, // (EREST_ERROR == EREST_ERROR_CLIENTERROR)
23};
@ EREST_FEEDING
Definition RestApi.c:12
@ EREST_ERROR_CLIENTERROR
Definition RestApi.c:17
@ EREST_PROCESSED
Definition RestApi.c:14
@ EREST_ERROR_APPERROR
Definition RestApi.c:19
@ EREST_PENDING
Definition RestApi.c:11
@ EREST_ERROR_SERVERERROR
Definition RestApi.c:18
@ EREST_ERROR_UNKNOWN
Definition RestApi.c:22
@ EREST_ERROR_TIMEOUT
Definition RestApi.c:20
@ EREST_ERROR
Definition RestApi.c:16
@ EREST_EMPTY
Definition RestApi.c:10
@ EREST_SUCCESS
Definition RestApi.c:13
@ EREST_ERROR_NOTIMPLEMENTED
Definition RestApi.c:21

Function Documentation

◆ CreateRestApi()

proto native RestApi CreateRestApi ( )

◆ DestroyRestApi()

proto native void DestroyRestApi ( )

◆ GetRestApi()

proto native RestApi GetRestApi ( )