TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
LoginRESTService::ResponseCodePlugin Struct Reference

Static Public Member Functions

static int32 Init (soap *s, soap_plugin *, void *)
 
static void Destroy (soap *s, soap_plugin *p)
 
static int32 ChangeResponse (soap *s, int32 originalResponse, size_t contentLength)
 

Public Attributes

int32(* fresponse )(soap *s, int32 status, size_t length)
 
int32 ErrorCode
 

Static Public Attributes

static char const *const PluginId = "bnet-error-code"
 

Member Function Documentation

int32 LoginRESTService::ResponseCodePlugin::ChangeResponse ( soap s,
int32  originalResponse,
size_t  contentLength 
)
static
412 {
413  ResponseCodePlugin* self = reinterpret_cast<ResponseCodePlugin*>(soap_lookup_plugin(s, PluginId));
414  return self->fresponse(s, self->ErrorCode && originalResponse == SOAP_FILE ? self->ErrorCode : originalResponse, contentLength);
415 }
#define SOAP_FILE
Definition: stdsoap2.h:1311
SOAP_FMAC1 void *SOAP_FMAC2 soap_lookup_plugin(struct soap *soap, const char *id)
Definition: stdsoap2.cpp:16947
static char const *const PluginId
Definition: LoginRESTService.h:76

+ Here is the call graph for this function:

void LoginRESTService::ResponseCodePlugin::Destroy ( soap s,
soap_plugin p 
)
static
405 {
406  ResponseCodePlugin* data = reinterpret_cast<ResponseCodePlugin*>(p->data);
407  s->fresponse = data->fresponse;
408  delete data;
409 }
void * data
Definition: stdsoap2.h:2253
int(* fresponse)(struct soap *, int, size_t)
Definition: stdsoap2.h:1990
int32 LoginRESTService::ResponseCodePlugin::Init ( soap s,
soap_plugin p,
void *   
)
static
392 {
393  ResponseCodePlugin* data = new ResponseCodePlugin();
394  data->fresponse = s->fresponse;
395 
396  p->id = PluginId;
397  p->fdelete = &Destroy;
398  p->data = data;
399 
401  return SOAP_OK;
402 }
static int32 ChangeResponse(soap *s, int32 originalResponse, size_t contentLength)
Definition: LoginRESTService.cpp:411
const char * id
Definition: stdsoap2.h:2252
static void Destroy(soap *s, soap_plugin *p)
Definition: LoginRESTService.cpp:404
#define SOAP_OK
Definition: stdsoap2.h:1245
void * data
Definition: stdsoap2.h:2253
void(* fdelete)(struct soap *soap, struct soap_plugin *p)
Definition: stdsoap2.h:2255
int(* fresponse)(struct soap *, int, size_t)
Definition: stdsoap2.h:1990
static char const *const PluginId
Definition: LoginRESTService.h:76

+ Here is the caller graph for this function:

Member Data Documentation

int32 LoginRESTService::ResponseCodePlugin::ErrorCode
int32(* LoginRESTService::ResponseCodePlugin::fresponse)(soap *s, int32 status, size_t length)
char const *const LoginRESTService::ResponseCodePlugin::PluginId = "bnet-error-code"
static

The documentation for this struct was generated from the following files: