first commit
This commit is contained in:
@@ -0,0 +1,235 @@
|
||||
//****************************************************************************
|
||||
// Filename: XmlElements.h
|
||||
// Copyright 1999 Daniel X. Pape. All rights reserved.
|
||||
//
|
||||
// Description: A set of classes for reading and parsing simple XML files.
|
||||
//
|
||||
//****************************************************************************
|
||||
// Revision History:
|
||||
// Thursday, July 08, 1999 - Original. Heavily based on "A Simple XML
|
||||
// Parser" by Sebastien Andrivet. See Documentation.
|
||||
//****************************************************************************
|
||||
|
||||
#ifndef _XMLELEMENTS_H_
|
||||
#define _XMLELEMENTS_H_
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// Disable stupid MSVC warning about identifiers > 255 chars long
|
||||
#pragma warning (disable: 4786)
|
||||
#endif
|
||||
|
||||
// STL
|
||||
#include <memory>
|
||||
|
||||
#include "XmlFwdDecls.h"
|
||||
|
||||
namespace SimpleXMLParser
|
||||
{
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
class Attribute;
|
||||
class Element;
|
||||
class ElementNull;
|
||||
|
||||
typedef std::map<std::string, std::string> Attributes;
|
||||
typedef std::vector<Element*> Elements;
|
||||
|
||||
// ***************************************************************************
|
||||
// Class: Attribute
|
||||
// Desc:
|
||||
// ***************************************************************************
|
||||
class Attribute
|
||||
{
|
||||
std::string name_;
|
||||
std::string value_;
|
||||
|
||||
public:
|
||||
|
||||
Attribute(const std::string& name, const std::string& value);
|
||||
|
||||
const std::string& GetName() const;
|
||||
const std::string& GetValue() const;
|
||||
};
|
||||
|
||||
// ***************************************************************************
|
||||
// Class: Value
|
||||
// Desc:
|
||||
// ***************************************************************************
|
||||
class Value
|
||||
{
|
||||
std::string value_;
|
||||
|
||||
public:
|
||||
|
||||
void Add(const std::string& text);
|
||||
void Add(char c);
|
||||
|
||||
// Conversion operator
|
||||
operator const std::string&() const;
|
||||
};
|
||||
|
||||
// ***************************************************************************
|
||||
// Class: Element
|
||||
// Desc: Abstract base class for markup tags
|
||||
// ***************************************************************************
|
||||
class Element
|
||||
{
|
||||
private:
|
||||
const std::string name_;
|
||||
Value value_;
|
||||
|
||||
public:
|
||||
|
||||
static ElementNull& nullElem; // null element (singleton)
|
||||
|
||||
Element(const std::string& strName);
|
||||
virtual ~Element() { }
|
||||
|
||||
void AddValue(const std::string& strText);
|
||||
void AddValue(char c);
|
||||
|
||||
const std::string& GetName() const;
|
||||
const Value& GetValue() const;
|
||||
|
||||
const Element& operator()(const char * szName, int nIndex = 0) const;
|
||||
|
||||
virtual bool IsNull() const;
|
||||
|
||||
virtual bool AddChild(Element* pChild) = 0;
|
||||
|
||||
virtual const Elements* GetChildren() const = 0;
|
||||
virtual const Element& GetChild(const char * szName,
|
||||
int nIndex = 0) const = 0;
|
||||
|
||||
virtual const Attributes* GetAttributes() const = 0;
|
||||
virtual const std::string GetAttributeValue(const std::string&) const = 0;
|
||||
};
|
||||
|
||||
// ***************************************************************************
|
||||
// Class: ElementTag
|
||||
// Desc: Element of the form <name>...</name> or <name/>. Can
|
||||
// contain other elements and may have attributes
|
||||
// ***************************************************************************
|
||||
class ElementTag : public Element
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
ElementTag(const std::string& strName);
|
||||
~ElementTag();
|
||||
|
||||
void AddAttribute(std::string& strName, std::string& strValue);
|
||||
|
||||
virtual bool AddChild(Element* pChild);
|
||||
|
||||
virtual const Elements* GetChildren() const;
|
||||
virtual const Element& GetChild(const char * szName, int nIndex = 0) const;
|
||||
|
||||
virtual const Attributes* GetAttributes() const;
|
||||
virtual const std::string GetAttributeValue(const std::string&) const;
|
||||
|
||||
private:
|
||||
|
||||
bool FindChild(const char * szName, Elements::const_iterator& it) const;
|
||||
|
||||
Attributes attributes_;
|
||||
Elements children_;
|
||||
|
||||
};
|
||||
|
||||
// ***************************************************************************
|
||||
// Class: ElementSimple
|
||||
// Desc: Element without children (like comments)
|
||||
// ***************************************************************************
|
||||
class ElementSimple: public Element
|
||||
{
|
||||
public:
|
||||
ElementSimple(const std::string& strName);
|
||||
|
||||
virtual bool AddChild(Element* pChild);
|
||||
|
||||
virtual const Elements* GetChildren() const;
|
||||
virtual const Element& GetChild(const char * szName, int nIndex = 0) const;
|
||||
|
||||
virtual const Attributes* GetAttributes() const;
|
||||
virtual const std::string GetAttributeValue(const std::string&) const;
|
||||
};
|
||||
|
||||
// ***************************************************************************
|
||||
// Class: ElementComment
|
||||
// Desc: Element named "!"
|
||||
// ***************************************************************************
|
||||
class ElementComment : public ElementSimple
|
||||
{
|
||||
public:
|
||||
ElementComment(const std::string& strComment);
|
||||
};
|
||||
|
||||
// ***************************************************************************
|
||||
// Class: ElementNull
|
||||
// Desc: Element::nullElem
|
||||
// ***************************************************************************
|
||||
class ElementNull : public ElementSimple
|
||||
{
|
||||
public:
|
||||
ElementNull();
|
||||
|
||||
private:
|
||||
virtual bool IsNull() const;
|
||||
};
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Attribute of a tag
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
inline const std::string& Attribute::GetName() const
|
||||
{
|
||||
return(name_);
|
||||
}
|
||||
|
||||
inline const std::string& Attribute::GetValue() const
|
||||
{
|
||||
return(value_);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Element
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
inline const std::string& Element::GetName() const
|
||||
{
|
||||
return(name_);
|
||||
}
|
||||
|
||||
inline const Value& Element::GetValue() const
|
||||
{
|
||||
return(value_);
|
||||
}
|
||||
|
||||
inline void Element::AddValue(const std::string& strText)
|
||||
{
|
||||
value_.Add(strText);
|
||||
}
|
||||
|
||||
inline void Element::AddValue(char c)
|
||||
{
|
||||
value_.Add(c);
|
||||
}
|
||||
|
||||
inline const Element&
|
||||
Element::operator()(const char * szName, int nIndex) const
|
||||
{
|
||||
return(GetChild(szName, nIndex));
|
||||
}
|
||||
|
||||
inline void
|
||||
ElementTag::AddAttribute(std::string& strName, std::string& strValue)
|
||||
{
|
||||
attributes_[strName] = strValue;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
//****************************************************************************
|
||||
// Filename: XmlFwdDecls.h
|
||||
// Copyright 1999 Daniel X. Pape. All rights reserved.
|
||||
//
|
||||
// Description: Just some forward declarations for external classes to
|
||||
// include.
|
||||
//
|
||||
//****************************************************************************
|
||||
// Revision History:
|
||||
// Tuesday, September 28, 1999 - Original
|
||||
//****************************************************************************
|
||||
|
||||
#ifndef _XMLFWDDECLS_H_
|
||||
#define _XMLFWDDECLS_H_
|
||||
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
namespace SimpleXMLParser
|
||||
{
|
||||
|
||||
class Attribute;
|
||||
class Element;
|
||||
class ElementNull;
|
||||
|
||||
typedef std::map<std::string, std::string> Attributes;
|
||||
typedef std::vector<Element*> Elements;
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,282 @@
|
||||
//****************************************************************************
|
||||
// Filename: XmlParser.h
|
||||
// Copyright 1999 Daniel X. Pape. All rights reserved.
|
||||
//
|
||||
// Description: A set of classes for reading and parsing simple XML files.
|
||||
//
|
||||
//****************************************************************************
|
||||
// Revision History:
|
||||
// Thursday, July 08, 1999 - Original. Heavily based on "A Simple XML
|
||||
// Parser" by Sebastien Andrivet. See Documentation.
|
||||
//****************************************************************************
|
||||
|
||||
#ifndef _XMLPARSER_H_
|
||||
#define _XMLPARSER_H_
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// Disable stupid MSVC warning about identifiers > 255 chars long
|
||||
#pragma warning (disable: 4786)
|
||||
#endif
|
||||
|
||||
// STL
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
#include "XmlElements.h"
|
||||
|
||||
namespace SimpleXMLParser
|
||||
{
|
||||
|
||||
// ***************************************************************************
|
||||
// Class: XmlException
|
||||
// Desc: parsing error
|
||||
// ***************************************************************************
|
||||
class XmlException
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
XmlException(int line, int column);
|
||||
|
||||
int GetLine() const;
|
||||
int GetColumn() const;
|
||||
|
||||
private:
|
||||
|
||||
int line_;
|
||||
int column_;
|
||||
|
||||
};
|
||||
|
||||
// ***************************************************************************
|
||||
// Class: XmlParser
|
||||
// Desc:
|
||||
// ***************************************************************************
|
||||
class XmlParser
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
XmlParser();
|
||||
|
||||
Element& Parse(const char * szSource, int nSourceSize);
|
||||
|
||||
private:
|
||||
|
||||
XmlParser(const XmlParser&);
|
||||
XmlParser& operator=(const XmlParser&);
|
||||
|
||||
// ***********************************************************************
|
||||
// Class: Bookmark
|
||||
// Desc: record the current position in the document
|
||||
// ***********************************************************************
|
||||
class Bookmark
|
||||
{
|
||||
private:
|
||||
Bookmark(const Bookmark&);
|
||||
Bookmark& operator=(const Bookmark&);
|
||||
|
||||
XmlParser& parser_; // XmlParser
|
||||
const char* sourceCurrent_; // Position recorded
|
||||
int line_; // Line recorded
|
||||
int column_; // Column recorded
|
||||
|
||||
public:
|
||||
Bookmark(XmlParser& reader);
|
||||
// Change back the position
|
||||
void Restore();
|
||||
// Get the sub-string between the current and
|
||||
// the recorded positions
|
||||
void GetSubString(std::string& strString, int nNumEndSkip = 0);
|
||||
// Record the current position
|
||||
void Reset();
|
||||
};
|
||||
|
||||
friend class Bookmark;
|
||||
|
||||
const char* source_; // XML document
|
||||
const char* sourceCurrent_; // Current position
|
||||
const char* sourceEnd_; // End of the document
|
||||
int line_; // Current line
|
||||
int column_; // Current column
|
||||
|
||||
std::string xmlVersion_; // Version of XML used in doc.
|
||||
std::auto_ptr<Element> rootElem_; // Root element
|
||||
|
||||
// parsing
|
||||
|
||||
char NextChar();
|
||||
void PreviousChar();
|
||||
|
||||
// All of these following member functions can throw exceptions
|
||||
|
||||
bool ParseSpaces();
|
||||
bool ParseString(const char* pString);
|
||||
bool ParseStringNoCase(const char* pString);
|
||||
bool ParseNumber(int& nNum);
|
||||
bool ParseHexNumber(int& nNum);
|
||||
bool ParseChar(char c);
|
||||
bool ParseName(std::string& strName);
|
||||
|
||||
bool ParseDeclBegining(const char * szString);
|
||||
bool ParseXMLDecl();
|
||||
bool ParseEq();
|
||||
bool ParseVersionInfo(std::string& strVersion);
|
||||
bool ParseVersionNum(std::string& strVersion);
|
||||
bool ParseEncodingDecl();
|
||||
bool ParseEncName();
|
||||
void ParseMiscs();
|
||||
bool ParseReference(char& c);
|
||||
bool ParseAttValue(std::string& strValue);
|
||||
bool ParseAttribute(ElementTag* pElem);
|
||||
bool ParseETag(Element& element);
|
||||
void ParseContentETag(ElementTag& element);
|
||||
bool ParseMarkup(Element& element);
|
||||
bool ParseCDATA(Element& element);
|
||||
|
||||
ElementComment* ParseComment();
|
||||
ElementTag* ParseTagBegining();
|
||||
ElementTag* ParseElement();
|
||||
Element* ParseDocument();
|
||||
|
||||
bool MapReferenceName(const std::string& strName, char& c);
|
||||
|
||||
void SyntaxError();
|
||||
};
|
||||
|
||||
inline XmlException::XmlException(int line, int column)
|
||||
: line_(line), column_(column)
|
||||
{
|
||||
}
|
||||
|
||||
inline int XmlException::GetLine() const
|
||||
{
|
||||
return(line_);
|
||||
}
|
||||
|
||||
inline int XmlException::GetColumn() const
|
||||
{
|
||||
return(column_);
|
||||
}
|
||||
|
||||
inline XmlParser::Bookmark::Bookmark(XmlParser& reader)
|
||||
: parser_(reader), sourceCurrent_(reader.sourceCurrent_),
|
||||
line_(0), column_(0)
|
||||
{
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
// Function: Restore
|
||||
// Desc: Change back the position
|
||||
// ***************************************************************************
|
||||
inline void XmlParser::Bookmark::Restore()
|
||||
{
|
||||
parser_.sourceCurrent_ = sourceCurrent_;
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
// Function: GetSubString
|
||||
// Desc: Get the sub-string between the current and the recorded positions
|
||||
// ***************************************************************************
|
||||
inline void XmlParser::Bookmark::GetSubString(std::string& strString, int nNumEndSkip)
|
||||
{
|
||||
// ASSERT(parser_.sourceCurrent_ + nNumEndSkip >= sourceCurrent_);
|
||||
strString = std::string(sourceCurrent_, parser_.sourceCurrent_ -
|
||||
sourceCurrent_ - nNumEndSkip);
|
||||
}
|
||||
|
||||
inline void XmlParser::Bookmark::Reset()
|
||||
{
|
||||
sourceCurrent_ = parser_.sourceCurrent_;
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
// Function: IsSpace
|
||||
// Desc: Space, tabulation, line feed or return
|
||||
// ***************************************************************************
|
||||
inline bool IsSpace(char c)
|
||||
{
|
||||
return(c == ' ' || c == '\t' || c == '\r' || c == '\n');
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
// Function: IsAlpha
|
||||
// Desc: [a-zA-Z]
|
||||
// ***************************************************************************
|
||||
inline bool IsAlpha(char c)
|
||||
{
|
||||
return((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'));
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
// Function: IsDigit
|
||||
// Desc: [0-9]
|
||||
// ***************************************************************************
|
||||
inline bool IsDigit(char c)
|
||||
{
|
||||
return(c >= '0' && c <= '9');
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
// Function: IsHexDigit
|
||||
// Desc: [0-9a-fA-F]
|
||||
// ***************************************************************************
|
||||
inline bool IsHexDigit(char c)
|
||||
{
|
||||
return(IsDigit(c) || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F'));
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
// Function: HexDigitValue
|
||||
// Desc: [0-9a-fA-F]
|
||||
// ***************************************************************************
|
||||
inline int HexDigitValue(char c)
|
||||
{
|
||||
return((c >= '0' && c <= '9') ? c - '0'
|
||||
: ((c >= 'a' && c <= 'f') ? c - 'a' + 10
|
||||
: c - 'A' + 10));
|
||||
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
// Function: IsAlphaDigit
|
||||
// Desc: [a-zA-Z0-9]
|
||||
// ***************************************************************************
|
||||
inline bool IsAlphaDigit(char c)
|
||||
{
|
||||
return(IsAlpha(c) || IsDigit(c));
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
// Function: IsAlphaDigitEx
|
||||
// Desc: [a-zA-Z0-9_.:] | '-'
|
||||
// ***************************************************************************
|
||||
inline bool IsAlphaDigitEx(char c)
|
||||
{
|
||||
return(IsAlphaDigit(c) || c == '_' || c == '.' || c == ':' || c == '-');
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
// Function: LowCase
|
||||
// Desc:
|
||||
// ***************************************************************************
|
||||
inline char LowCase(char c)
|
||||
{
|
||||
return(c >= 'A' && c <= 'Z' ? c - 'A' + 'a' : c);
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
// Function: IsXmlChar
|
||||
// Desc:
|
||||
// ***************************************************************************
|
||||
inline bool IsXmlChar(char c)
|
||||
{
|
||||
return(c == 0x9 || c == 0xa || c == 0xd || c >= 0x20);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
#ifndef __mx_account_h__
|
||||
#define __mx_account_h__
|
||||
|
||||
#include "vars.h"
|
||||
|
||||
|
||||
long account_calls(CVars in, CVars &out);
|
||||
long CreateCoreGradeAccount(CVars in, CVars &out);
|
||||
long CreateCoreGradeAccountPending(CVars in, CVars &out);
|
||||
long LoginCoreGradeAccount( CVars in, CVars &out );
|
||||
long SessionCheck(long uid, const char *sessionid, int create );
|
||||
long account_session_check(CVars in, CVars out);
|
||||
|
||||
long CompleteAddCustomerBalance(CVars in, CVars &out);
|
||||
long InitiateAddCustomerBalance(CVars in, CVars &out);
|
||||
long DeliverMobilseEtisalat(CVars in, CVars &out);
|
||||
long GateDeliverMobilseEtisalat(CVars in, CVars &out);
|
||||
long ETSL_configure(CVars in, CVars &out);
|
||||
long AddMobileTopuNumber(CVars in, CVars &out);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
#ifndef CFG_H
|
||||
#define CFG_H
|
||||
|
||||
#include "php_coregrade_config.h"
|
||||
|
||||
void CfgReadConfig();
|
||||
long CfgReadLong(const char* key);
|
||||
//std::string CfgReadString(const char* key);
|
||||
const char* CfgReadChar(const char* key);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,280 @@
|
||||
#ifndef __dew_cgi_lib
|
||||
#define __dew_cgi_lib
|
||||
|
||||
#include "php_tmpl_prefix.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <utime.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/timeb.h>
|
||||
#include <sys/time.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <ctype.h> // for tolower(char)
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <sqltypes.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "clog.h"
|
||||
#include "list.h"
|
||||
#include "cvariables.h"
|
||||
|
||||
|
||||
#define CGI_FLAG_CLEAR (char*)-1
|
||||
|
||||
#define EMAIL_PREFIX TMPL_PREFIX
|
||||
|
||||
enum { METHOD_NONE, METHOD_GET, METHOD_POST };
|
||||
enum { SEQ_NONE, SEQ_REVERSE };
|
||||
|
||||
int Min0(int a, int b, bool & EOS); // Returns the smaller of the two; if it's < 0, returns 0
|
||||
// a = how many to copy; b = limit;
|
||||
|
||||
void strncpy_(char * dst, char * src, int n);
|
||||
|
||||
int GetParam(char * params, char _name[], char value[], int valuelen, char ** end = NULL);
|
||||
|
||||
void CatFile( char * fname, FILE * fout );
|
||||
|
||||
/************************************************************************
|
||||
* *
|
||||
* Classes *
|
||||
* *
|
||||
* - Class CVariables defines a set of routines for handling internal *
|
||||
* variables, which are stored by using a linked list *
|
||||
* *
|
||||
* - Class CGIList implements the functionality in template rendering *
|
||||
* by which one can define lists of unknown length from within *
|
||||
* a template. *
|
||||
* *
|
||||
* - Class C_CGI_Form is the most essential class for the CGI interface. *
|
||||
* It enables to obtain variables passed from the browser *
|
||||
* and renders complex templates using CVariables and CGIList *
|
||||
* *
|
||||
*************************************************************************/
|
||||
|
||||
|
||||
|
||||
// The following deals with getting variables from forms
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char * mask, * explanation;
|
||||
|
||||
} pattern_t;
|
||||
|
||||
|
||||
typedef
|
||||
enum { CGI_STRING, CGI_RADIO,
|
||||
CGI_SELECT,
|
||||
CGI_SELECT_LOOKUP,
|
||||
CGI_CHECKBOX,
|
||||
CGI_CHECKBOXLIST, // bit-encoded ULONG
|
||||
CGI_LONG,
|
||||
CGI_FLOAT,
|
||||
CGI_CHECKBOXLIST_ARRAY, // array of ULONGs
|
||||
CGI_RADIO_INT,
|
||||
CGI_SELECT_MUL, // multiple select box
|
||||
CGI_RADIO_INT2, // CGI_RADIO_INT that uses first two letters of the variable name for referencing values
|
||||
CGI_AMOUNT, // currency amount, converts to unsigned long
|
||||
}
|
||||
CGI_VAR_TYPE;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char *name;
|
||||
CGI_VAR_TYPE type;
|
||||
|
||||
// Matching
|
||||
|
||||
int minlen, maxlen;
|
||||
pattern_t *pattern; // ext regular expression; NULL for skip
|
||||
|
||||
char **radio; // for radio buttons, NULL otherwise
|
||||
unsigned char nradio; // number of elements
|
||||
|
||||
// return portion
|
||||
|
||||
void *target; // Where the result should be stored
|
||||
int size; // Don't exceed this !
|
||||
|
||||
// corresponding SQL type
|
||||
int sql_type;
|
||||
|
||||
// more return data
|
||||
bool match;
|
||||
|
||||
|
||||
} CGI_Variable;
|
||||
|
||||
//
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class CGIList;
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char * pre, * post;
|
||||
int pre_n, post_n;
|
||||
} Tprepost;
|
||||
|
||||
|
||||
class C_CGI_Form : public CVariables {
|
||||
public:
|
||||
friend class CGIList;
|
||||
|
||||
C_CGI_Form( char * _dir, char * _template_file, char * _global_template=NULL, int _argc=0, char **_argv = NULL );
|
||||
// Instantiates a C_CGI_Form object.
|
||||
// _dir - template directory
|
||||
// _template_file - initial/default template file
|
||||
// _global_template - used to encapsulate templates in a global template
|
||||
// _arc - argc from main()
|
||||
// _argv - argv from main()
|
||||
|
||||
|
||||
|
||||
~C_CGI_Form( );
|
||||
|
||||
void Email( char * fname, char * from=NULL );
|
||||
|
||||
bool Form( FILE * fout ); // Render output from current template into opened file 'fout'
|
||||
bool Form( FILE * fout, char * template_file );
|
||||
|
||||
char * FormFile( char * fname ); // Render output from current template into 'fname'
|
||||
|
||||
char * FormBuffer( char * buf );
|
||||
|
||||
/* bool FormBuffer( char * buf, FILE * fout, char * listname = NULL, int listi = 0 );
|
||||
// Render output from current template into buffer*/
|
||||
char * RFormBuffer( char * buf, char * listname = NULL, int listi = 0 );
|
||||
// Render output from current template into buffer using recursion
|
||||
|
||||
#ifdef WITH_LANGUAGE
|
||||
char *translate( char * buf, const char *template_file );
|
||||
#endif
|
||||
|
||||
// int GetParam( char name[], char value[], int valuelen );
|
||||
// Scan 'params' for 'name' and return its value in 'value'
|
||||
int GetParam( char name[], char value[], int valuelen, char ** end = NULL, char *start = NULL );
|
||||
int GetParamMul( char name[], TList ** list );
|
||||
|
||||
int GetScreen( char * screens[], int n, const char * scrs = NULL );
|
||||
// Returns current screen index as passed by the browser
|
||||
// and looked up in screens[]
|
||||
int GetCommand( char * commands[], int n );
|
||||
// Returns current command index as passed by the browser
|
||||
// and looked up in commands[]
|
||||
|
||||
void Template( char * _template_file )
|
||||
// Sets the default template to '_template_file'
|
||||
{
|
||||
free( template_file );
|
||||
template_file = (char*)malloc( strlen(TMPL_PREFIX)+1+strlen(_template_file)+1 );
|
||||
sprintf( template_file, "%s/%s", TMPL_PREFIX, _template_file );
|
||||
}
|
||||
|
||||
void GlobalTemplate( char * _template_file )
|
||||
// Sets the global template to '_template_file'
|
||||
{
|
||||
if ( global_template ) free( global_template );
|
||||
global_template = strdup(_template_file);
|
||||
}
|
||||
// void ParseGlobalTemplate(); // Parse the global template file and set 'sectionX' variables
|
||||
void ParseGlobalTemplate( char * fname = NULL );
|
||||
bool ParseNewTemplate( char * fname = NULL );
|
||||
|
||||
void MatchVariable( CGI_Variable * var, bool optional = false, bool flag_if_mismatch = true );
|
||||
// Provides CGI variable mapping and matching functionality
|
||||
// can match against regular expressions etc
|
||||
void SetVariable( CGI_Variable * var );
|
||||
// Sets a variable that may be used in a template
|
||||
void Flag( CGI_Variable * var );
|
||||
// Mark variable as invalid input
|
||||
void Flag( char * var, char * explanation = NULL );
|
||||
// Mark variable as invalid input
|
||||
|
||||
void ClearVariable( CGI_Variable var );
|
||||
|
||||
void GetNextVariable( TList * &cur, char * &c1, char * &c, char * listname, int listi );
|
||||
CGIList * lists[50];
|
||||
int nlists;
|
||||
|
||||
char * params;
|
||||
|
||||
char * template_file;
|
||||
char * global_template;
|
||||
|
||||
unsigned char method, sequence;
|
||||
|
||||
private:
|
||||
char * dir;
|
||||
char * form;
|
||||
|
||||
#ifdef WITH_LANGUAGE
|
||||
char language[10];
|
||||
#endif
|
||||
int argc;
|
||||
char** argv;
|
||||
|
||||
};
|
||||
|
||||
class CGIList
|
||||
{
|
||||
public:
|
||||
friend class C_CGI_Form;
|
||||
|
||||
CGIList( C_CGI_Form * _form, char * name );
|
||||
|
||||
// Instantiates a CGI_List object
|
||||
// _form points to the parent form object
|
||||
// name - name of the list as used in template
|
||||
|
||||
~CGIList() { free( listname ); if (form) form->lists[listn] = 0; };
|
||||
|
||||
int CloseElement() { return ++n; };
|
||||
// Move on to the next element in the list.
|
||||
|
||||
void LetStr( char * var, char * value );
|
||||
// Set a CGI list variable using the list name and element number as part of the name
|
||||
|
||||
void LetStrf( char * var, const char * format, ... );
|
||||
|
||||
void LetInt16( char * var, int value );
|
||||
// Set a CGI list variable using the list name and element number as part of the name
|
||||
|
||||
char * GetVariable( char * var, char * result, int size );
|
||||
// Obtain a CGI list variable value using the list name and element number as part of the name
|
||||
|
||||
void LetStr( char * var, const char * format, ... );
|
||||
|
||||
int n;
|
||||
private:
|
||||
C_CGI_Form * form;
|
||||
int listn;
|
||||
char * listname;
|
||||
};
|
||||
|
||||
|
||||
|
||||
class CInputError : public CVariables {
|
||||
public:
|
||||
|
||||
void Add( bool text, const char * name, const char * explanation, ... );
|
||||
char * Get( const char * name, bool *text );
|
||||
void Log();
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,191 @@
|
||||
#ifndef __CLOG_H__
|
||||
#define __CLOG_H__
|
||||
|
||||
#include "php_coregrade_log.h"
|
||||
#include "php_filelog_max_level.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <cstdio>
|
||||
#include <stdarg.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
inline std::string NowTime();
|
||||
|
||||
enum TLogLevel {logERROR, logWARNING, logINFO, logDEBUG, logDEBUG1, logDEBUG2, logDEBUG3, logDEBUG4, logSQL, FLOG_MAX};
|
||||
|
||||
void logfmt( TLogLevel level, const char * format, ... );
|
||||
|
||||
template <typename T>
|
||||
class Log
|
||||
{
|
||||
public:
|
||||
Log();
|
||||
virtual ~Log();
|
||||
std::ostringstream& Get(TLogLevel level = logINFO);
|
||||
public:
|
||||
static TLogLevel& ReportingLevel();
|
||||
static std::string ToString(TLogLevel level);
|
||||
static TLogLevel FromString(const std::string& level);
|
||||
protected:
|
||||
std::ostringstream os;
|
||||
private:
|
||||
Log(const Log&);
|
||||
Log& operator =(const Log&);
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
Log<T>::Log()
|
||||
{
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
std::ostringstream& Log<T>::Get(TLogLevel level)
|
||||
{
|
||||
os << "- " << NowTime();
|
||||
os << " " << ToString(level);
|
||||
os << " [" << getpid() << "]: ";
|
||||
os << std::string(level > logDEBUG ? level - logDEBUG : 0, '\t');
|
||||
return os;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
Log<T>::~Log()
|
||||
{
|
||||
os << std::endl;
|
||||
T::Output(os.str());
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
TLogLevel& Log<T>::ReportingLevel()
|
||||
{
|
||||
static TLogLevel reportingLevel = FLOG_MAX;
|
||||
return reportingLevel;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
std::string Log<T>::ToString(TLogLevel level)
|
||||
{
|
||||
static const char* const buffer[] = {"ERROR", "WARNING", "INFO", "DEBUG", "DEBUG1", "DEBUG2", "DEBUG3", "DEBUG4", "SQL", "FLOG_MAX"};
|
||||
return buffer[level];
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
TLogLevel Log<T>::FromString(const std::string& level)
|
||||
{
|
||||
if (level == "FLOG_MAX")
|
||||
return FLOG_MAX;
|
||||
if (level == "SQL")
|
||||
return logSQL;
|
||||
if (level == "DEBUG4")
|
||||
return logDEBUG4;
|
||||
if (level == "DEBUG3")
|
||||
return logDEBUG3;
|
||||
if (level == "DEBUG2")
|
||||
return logDEBUG2;
|
||||
if (level == "DEBUG1")
|
||||
return logDEBUG1;
|
||||
if (level == "DEBUG")
|
||||
return logDEBUG;
|
||||
if (level == "INFO")
|
||||
return logINFO;
|
||||
if (level == "WARNING")
|
||||
return logWARNING;
|
||||
if (level == "ERROR")
|
||||
return logERROR;
|
||||
Log<T>().Get(logWARNING) << "Unknown logging level '" << level << "'. Using INFO level as default.";
|
||||
return logINFO;
|
||||
}
|
||||
|
||||
class Output2FILE
|
||||
{
|
||||
public:
|
||||
static FILE*& Stream();
|
||||
static void Output(const std::string& msg);
|
||||
};
|
||||
|
||||
inline FILE*& Output2FILE::Stream()
|
||||
{
|
||||
static FILE* pStream = stderr;
|
||||
return pStream;
|
||||
}
|
||||
|
||||
inline void Output2FILE::Output(const std::string& msg)
|
||||
{
|
||||
FILE* pStream = Stream();
|
||||
if (!pStream)
|
||||
return;
|
||||
fprintf(pStream, "%s", msg.c_str());
|
||||
fflush(pStream);
|
||||
}
|
||||
|
||||
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
|
||||
# if defined (BUILDING_FILELOG_DLL)
|
||||
# define FILELOG_DECLSPEC __declspec (dllexport)
|
||||
# elif defined (USING_FILELOG_DLL)
|
||||
# define FILELOG_DECLSPEC __declspec (dllimport)
|
||||
# else
|
||||
# define FILELOG_DECLSPEC
|
||||
# endif // BUILDING_DBSIMPLE_DLL
|
||||
#else
|
||||
# define FILELOG_DECLSPEC
|
||||
#endif // _WIN32
|
||||
|
||||
class FILELOG_DECLSPEC FILELog : public Log<Output2FILE> {};
|
||||
//typedef Log<Output2FILE> FILELog;
|
||||
|
||||
#ifndef FILELOG_MAX_LEVEL
|
||||
#define FILELOG_MAX_LEVEL FLOG_MAX
|
||||
#endif
|
||||
|
||||
#define FILE_LOG(level) \
|
||||
if (level > FILELOG_MAX_LEVEL) ;\
|
||||
else if (level > FILELog::ReportingLevel() || !Output2FILE::Stream()) ; \
|
||||
else FILELog().Get(level)
|
||||
|
||||
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
inline std::string NowTime()
|
||||
{
|
||||
const int MAX_LEN = 200;
|
||||
char buffer[MAX_LEN];
|
||||
if (GetTimeFormatA(LOCALE_USER_DEFAULT, 0, 0,
|
||||
"HH':'mm':'ss", buffer, MAX_LEN) == 0)
|
||||
return "Error in NowTime()";
|
||||
|
||||
char result[100] = {0};
|
||||
static DWORD first = GetTickCount();
|
||||
std::sprintf(result, "%s.%03ld", buffer, (long)(GetTickCount() - first) % 1000);
|
||||
return result;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#include <sys/time.h>
|
||||
|
||||
inline std::string NowTime()
|
||||
{
|
||||
char buffer[11];
|
||||
time_t t;
|
||||
time(&t);
|
||||
tm r = {0};
|
||||
strftime(buffer, sizeof(buffer), "%X", localtime_r(&t, &r));
|
||||
struct timeval tv;
|
||||
gettimeofday(&tv, 0);
|
||||
char result[100] = {0};
|
||||
std::sprintf(result, "%s.%03ld", buffer, (long)tv.tv_usec / 1000);
|
||||
return result;
|
||||
}
|
||||
|
||||
#endif //WIN32
|
||||
|
||||
|
||||
#endif //__LOG_H__
|
||||
|
||||
/*
|
||||
vi:ts=2
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
/* config.h. Generated from config.h.in by configure. */
|
||||
/* config.h.in. Generated from configure.in by autoheader. */
|
||||
|
||||
/* Whether to build coregrade_api as dynamic module */
|
||||
#define COMPILE_DL_COREGRADE_API 1
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#define HAVE_DLFCN_H 1
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#define HAVE_INTTYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#define HAVE_MEMORY_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#define HAVE_STDINT_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#define HAVE_STDLIB_H 1
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#define HAVE_STRINGS_H 1
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#define HAVE_STRING_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#define HAVE_SYS_STAT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#define HAVE_SYS_TYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#define HAVE_UNISTD_H 1
|
||||
|
||||
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
|
||||
/* #undef NO_MINUS_C_MINUS_O */
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT ""
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME ""
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING ""
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME ""
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#define PACKAGE_URL ""
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION ""
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
@@ -0,0 +1,20 @@
|
||||
#ifndef COREGRADE_API_COREGRADE_H
|
||||
#define COREGRADE_API_COREGRADE_H
|
||||
|
||||
#include "vars.h"
|
||||
|
||||
// A very simple coregrade class
|
||||
class CoreGrade {
|
||||
public:
|
||||
CoreGrade();
|
||||
~CoreGrade();
|
||||
long coregrade_api(CVars in, CVars &out);
|
||||
const char* cfgReadChar(const char *parameter);
|
||||
long cfgReadLong(const char *parameter);
|
||||
void logMessage(const char *message);
|
||||
private:
|
||||
FILE* pFile;
|
||||
int db;
|
||||
};
|
||||
|
||||
#endif /* COREGRADE_API_COREGRADE_H */
|
||||
@@ -0,0 +1,103 @@
|
||||
#ifndef COREGRADE_API_H
|
||||
#define COREGRADE_API_H
|
||||
|
||||
#define PHP_API_OK 0
|
||||
#define PHP_API_BAD_PARAM -1
|
||||
|
||||
#define COREGRADE_SESSION_CHECK 299
|
||||
#define COREGRADE_USER_LOGIN 300
|
||||
#define COREGRADE_USER_LOGOUT 301
|
||||
#define COREGRADE_CREATE_ACCOUNT 320
|
||||
|
||||
//**************************************************************
|
||||
#define COREGRADE_BKO_START 10000
|
||||
|
||||
#define COREGRADE_BKO_LOGIN 10010
|
||||
#define COREGRADE_BKO_CREATEUSER 10015
|
||||
#define COREGRADE_BKO_UPDATEUSER 10020
|
||||
|
||||
#define COREGRADE_BKO_END 10999
|
||||
//**************************************************************
|
||||
#define COREGRADE_ACCOUNT_START 11000
|
||||
|
||||
#define COREGRADE_ACCOUNT_TESTEMAIL 11001
|
||||
#define COREGRADE_ACCOUNT_PENDING 11010
|
||||
#define COREGRADE_VERIFY_PENDING_LINK 11015
|
||||
#define COREGRADE_ACCOUNT_CREATEACC 11020
|
||||
#define COREGRADE_ACCOUNT_LOGIN 11025
|
||||
|
||||
#define COREGRADE_ACCOUNT_END 11999
|
||||
//**************************************************************
|
||||
#define COREGRADE_GROUP_START 12000
|
||||
|
||||
#define COREGRADE_GROUP_CREATEGROUP 12010
|
||||
#define COREGRADE_GROUP_INVITEGROUP 12015
|
||||
#define COREGRADE_GROUP_ACCEPTGROUP 12020
|
||||
|
||||
#define COREGRADE_GROUP_END 12999
|
||||
//**************************************************************
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define COREGRADE_COMPLETE_SENDMONEY_INTERSW 555
|
||||
#define COREGRADE_GETBILLER_INTERSW 556
|
||||
#define COREGRADE_BILL_PAYMENT_ADVICE_INTERSW 557
|
||||
|
||||
#define COREGRADE_INTERSW_GETBILLER 556
|
||||
#define COREGRADE_INTERSW_BILL_PAYMENT_ADVICE 557
|
||||
#define COREGRADE_INTERSW_GETBILLERPAYMENTINTEMS 558
|
||||
#define COREGRADE_INTERSW_GETBILLERCATEGORIES 559
|
||||
#define COREGRADE_INTERSW_DO_TRANSFER 560
|
||||
#define COREGRADE_INTERSW_QUERY_TRANSACTION 561
|
||||
|
||||
#define COREGRADE_ADD_MONEYRECIPIENT 600
|
||||
|
||||
#define COREGRADE_CREATE_USER_ACCOUNT 700
|
||||
#define COREGRADE_USER_ACCOUNT_LOGIN 710
|
||||
#define COREGRADE_START_PASSWORDRESET 720
|
||||
#define COREGRADE_COMPLETE_PASSWORDRESET 730
|
||||
|
||||
#define COREGRADE_START_ADDMONEY 770
|
||||
#define COREGRADE_COMPLETE_ADDMONEY 775
|
||||
|
||||
#define COREGRADE_ADD_MOBILE_TOPUPNUM 900
|
||||
#define COREGRADE_PROMO_CALL 990
|
||||
|
||||
|
||||
#define COREGRADE_STOREFACE_GET_ACCOUNT_BALANCE 891
|
||||
|
||||
#define COREGRADE_LOG_ENTRY 900000
|
||||
#define COREGRADE_CREDIT_TOPUP 900010
|
||||
|
||||
|
||||
|
||||
#define COREGRADE_TOPUP_ORDER 900020
|
||||
#define COREGRADE_TOPUP_ORDER_PURCHASE 900030
|
||||
#define COREGRADE_PAYPAL_IPNMSG 900090
|
||||
|
||||
|
||||
|
||||
#define COREGRADE_BULKTOPUP_ORDER 700010
|
||||
#define COREGRADE_BULKTOPUP_ITEM 700020
|
||||
#define COREGRADE_BULKTOPUP_ITEMUPDATE 700030
|
||||
#define COREGRADE_BULKTOPUP_DELIVER 700040
|
||||
|
||||
|
||||
#define COREGRADE_BALANCE_TOPUP_ORDER 800020
|
||||
#define COREGRADE_BALANCE_TOPUP_PURCHASE 800030
|
||||
#define COREGRADE_BALANCE_TOPUP_PAYMENT 800040
|
||||
|
||||
|
||||
#define VIRTUAL_AIRTOPUP 70011
|
||||
|
||||
#define PAY_MODE_BALANCE 0
|
||||
#define PAY_MODE_CCARD 1
|
||||
#define PAY_MODE_BONUS 9
|
||||
|
||||
#define APPROVED_BALANCE 5
|
||||
#define DISAPROVE_BALANCE 3
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef COREGRADE_API_MAIN_H
|
||||
#define COREGRADE_API_MAIN_H
|
||||
|
||||
#include "vars.h"
|
||||
|
||||
long coregrade_api_main(CVars in, CVars &out);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,61 @@
|
||||
#ifndef __cvariables__
|
||||
#define __cvariables__
|
||||
|
||||
#include "stdarg.h"
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
#define MAX_CGI_VAR_LEN 50
|
||||
|
||||
typedef struct _L_Variables
|
||||
{
|
||||
char name[MAX_CGI_VAR_LEN+1];
|
||||
char * value;
|
||||
int opts; // options? used by some decendants
|
||||
struct _L_Variables * next;
|
||||
|
||||
} L_Variables;
|
||||
|
||||
|
||||
|
||||
class CVariables
|
||||
{
|
||||
public:
|
||||
friend class CGIList;
|
||||
|
||||
CVariables( );
|
||||
|
||||
~CVariables( );
|
||||
|
||||
void RenameVariable( const char * name, const char * newname );
|
||||
void LetInt16( char * var, const int value ); // Set the variable to an integer value
|
||||
void LetStr( const char * var, const char * value ); // Set the variable to a string value
|
||||
void LetStrf( char * var, const char * format, ... );
|
||||
void vLetStrf( char * var, const char * format, va_list ap );
|
||||
void LetStr( char * var, const char * value, int len );
|
||||
// Set the variable to a string value and truncate to len
|
||||
|
||||
void StrCat( char * var, const char * format, ... );
|
||||
void StrCatf( char * var, const char * format, ... );
|
||||
|
||||
char * GetVariable( const char * var ); // Obtain the variable value and return its temp location
|
||||
char * GetVariable( const char * var, char * result, int size );
|
||||
// Obtain the variable value and return it in 'result'
|
||||
char * GetVariable( const char * var, bool test, char * section = "" );
|
||||
long GetVariableLong( char * name, bool *valid = NULL );
|
||||
long GetVariableLong( char * name, bool test, char * section = "" );
|
||||
bool GetBool( char * var, bool test = false, char * section = "" );
|
||||
|
||||
void PrintVars( FILE * f = stdout ); // Print out all variables to file pointed to by 'f'
|
||||
|
||||
void Cleanup();
|
||||
|
||||
L_Variables * var, * var_top;
|
||||
|
||||
L_Variables * FindVariable( const char * var, bool create=false );
|
||||
// Obtains the next variable during the template parsing process
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,35 @@
|
||||
#ifndef __mx_email_h__
|
||||
#define __mx_email_h__
|
||||
|
||||
#include "vars.h"
|
||||
|
||||
long AccountPendingMail(CVars in);
|
||||
long WelcomeAccountMail(CVars in);
|
||||
long GroupCreateMemberMail(CVars in);
|
||||
long CreateCoreGradeGroupMail(CVars in);
|
||||
|
||||
|
||||
|
||||
long send_email(CVars in, CVars &out);
|
||||
long SystemStatus();
|
||||
long VirtualAirSaleAlert(CVars in);
|
||||
void SendAccountCreateAlert(long customer_id);
|
||||
long VirtualAirSaleCustomer(CVars in);
|
||||
void CustomerBalanceEmail(CVars in);
|
||||
void PaymentAlert(CVars in);
|
||||
void BalanceUpdateAlert(CVars in);
|
||||
void CustomerEmailWelcome(CVars in);
|
||||
long CustomerAirSale(CVars in);
|
||||
long CustomerAirSalePayment(CVars in);
|
||||
long CustomerAirBonus(CVars in);
|
||||
long CustomerBalanceBonusEmail(CVars in);
|
||||
long StartPassResetEmail(CVars in);
|
||||
long CompletePassResetEmail(CVars in);
|
||||
long SendPromoEmail(CVars in);
|
||||
long SendBalanceRequestAlert(CVars in);
|
||||
long SendBalanceCompleteAlert(CVars in);
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,378 @@
|
||||
/* envH.h
|
||||
Generated by gSOAP 2.8.16 from env.h
|
||||
|
||||
Copyright(C) 2000-2013, Robert van Engelen, Genivia Inc. All Rights Reserved.
|
||||
The generated code is released under one of the following licenses:
|
||||
GPL or Genivia's license for commercial use.
|
||||
This program is released under the GPL with the additional exemption that
|
||||
compiling, linking, and/or using OpenSSL is allowed.
|
||||
*/
|
||||
|
||||
#ifndef envH_H
|
||||
#define envH_H
|
||||
#include "envStub.h"
|
||||
#ifndef WITH_NOIDREF
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_markelement(struct soap*, const void*, int);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_putindependent(struct soap*);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_getindependent(struct soap*);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
SOAP_FMAC3 void *SOAP_FMAC4 soap_getelement(struct soap*, int*);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_putelement(struct soap*, const void*, const char*, int, int);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_ignore_element(struct soap*);
|
||||
|
||||
SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultcode(struct soap *soap);
|
||||
|
||||
SOAP_FMAC3 void * SOAP_FMAC4 env_instantiate(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 env_fdelete(struct soap_clist*);
|
||||
SOAP_FMAC3 void* SOAP_FMAC4 soap_class_id_enter(struct soap*, const char*, void*, int, size_t, const char*, const char*);
|
||||
|
||||
#ifndef SOAP_TYPE_byte
|
||||
#define SOAP_TYPE_byte (3)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_byte(struct soap*, char *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_byte(struct soap*, const char*, int, const char *, const char*);
|
||||
SOAP_FMAC3 char * SOAP_FMAC4 soap_in_byte(struct soap*, const char*, char *, const char*);
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_byte(struct soap*, const char *, const char*, const char*);
|
||||
|
||||
#ifndef soap_write_byte
|
||||
#define soap_write_byte(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_byte(soap, data),0) || soap_put_byte(soap, data, "byte", NULL) || soap_end_send(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
SOAP_FMAC3 char * SOAP_FMAC4 soap_get_byte(struct soap*, char *, const char*, const char*);
|
||||
|
||||
#ifndef soap_read_byte
|
||||
#define soap_read_byte(soap, data) ( soap_begin_recv(soap) || !soap_get_byte(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef SOAP_TYPE_int
|
||||
#define SOAP_TYPE_int (1)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_int(struct soap*, int *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_int(struct soap*, const char*, int, const int *, const char*);
|
||||
SOAP_FMAC3 int * SOAP_FMAC4 soap_in_int(struct soap*, const char*, int *, const char*);
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_int(struct soap*, const int *, const char*, const char*);
|
||||
|
||||
#ifndef soap_write_int
|
||||
#define soap_write_int(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_int(soap, data),0) || soap_put_int(soap, data, "int", NULL) || soap_end_send(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
SOAP_FMAC3 int * SOAP_FMAC4 soap_get_int(struct soap*, int *, const char*, const char*);
|
||||
|
||||
#ifndef soap_read_int
|
||||
#define soap_read_int(soap, data) ( soap_begin_recv(soap) || !soap_get_int(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_SOAP_ENV__Fault
|
||||
#define SOAP_TYPE_SOAP_ENV__Fault (14)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Fault(struct soap*, struct SOAP_ENV__Fault *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Fault(struct soap*, const struct SOAP_ENV__Fault *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Fault(struct soap*, const char*, int, const struct SOAP_ENV__Fault *, const char*);
|
||||
SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_in_SOAP_ENV__Fault(struct soap*, const char*, struct SOAP_ENV__Fault *, const char*);
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Fault(struct soap*, const struct SOAP_ENV__Fault *, const char*, const char*);
|
||||
|
||||
#ifndef soap_write_SOAP_ENV__Fault
|
||||
#define soap_write_SOAP_ENV__Fault(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_SOAP_ENV__Fault(soap, data),0) || soap_put_SOAP_ENV__Fault(soap, data, "SOAP-ENV:Fault", NULL) || soap_end_send(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_get_SOAP_ENV__Fault(struct soap*, struct SOAP_ENV__Fault *, const char*, const char*);
|
||||
|
||||
#ifndef soap_read_SOAP_ENV__Fault
|
||||
#define soap_read_SOAP_ENV__Fault(soap, data) ( soap_begin_recv(soap) || !soap_get_SOAP_ENV__Fault(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
SOAP_FMAC1 struct SOAP_ENV__Fault * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Fault(struct soap*, int, const char*, const char*, size_t*);
|
||||
|
||||
inline struct SOAP_ENV__Fault * soap_new_SOAP_ENV__Fault(struct soap *soap, int n = -1) { return soap_instantiate_SOAP_ENV__Fault(soap, n, NULL, NULL, NULL); }
|
||||
|
||||
inline struct SOAP_ENV__Fault * soap_new_req_SOAP_ENV__Fault(struct soap *soap) { struct SOAP_ENV__Fault *_p = soap_instantiate_SOAP_ENV__Fault(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_SOAP_ENV__Fault(soap, _p); } return _p; }
|
||||
|
||||
inline struct SOAP_ENV__Fault * soap_new_set_SOAP_ENV__Fault(struct soap *soap, char *faultcode, char *faultstring, char *faultactor, struct SOAP_ENV__Detail *detail, struct SOAP_ENV__Code *SOAP_ENV__Code, struct SOAP_ENV__Reason *SOAP_ENV__Reason, char *SOAP_ENV__Node, char *SOAP_ENV__Role, struct SOAP_ENV__Detail *SOAP_ENV__Detail) { struct SOAP_ENV__Fault *_p = soap_instantiate_SOAP_ENV__Fault(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_SOAP_ENV__Fault(soap, _p); _p->faultcode = faultcode; _p->faultstring = faultstring; _p->faultactor = faultactor; _p->detail = detail; _p->SOAP_ENV__Code = SOAP_ENV__Code; _p->SOAP_ENV__Reason = SOAP_ENV__Reason; _p->SOAP_ENV__Node = SOAP_ENV__Node; _p->SOAP_ENV__Role = SOAP_ENV__Role; _p->SOAP_ENV__Detail = SOAP_ENV__Detail; } return _p; }
|
||||
|
||||
inline void soap_delete_SOAP_ENV__Fault(struct soap *soap, struct SOAP_ENV__Fault *p) { soap_delete(soap, p); }
|
||||
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Fault(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_SOAP_ENV__Reason
|
||||
#define SOAP_TYPE_SOAP_ENV__Reason (13)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Reason(struct soap*, const struct SOAP_ENV__Reason *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Reason(struct soap*, const char*, int, const struct SOAP_ENV__Reason *, const char*);
|
||||
SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_in_SOAP_ENV__Reason(struct soap*, const char*, struct SOAP_ENV__Reason *, const char*);
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Reason(struct soap*, const struct SOAP_ENV__Reason *, const char*, const char*);
|
||||
|
||||
#ifndef soap_write_SOAP_ENV__Reason
|
||||
#define soap_write_SOAP_ENV__Reason(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_SOAP_ENV__Reason(soap, data),0) || soap_put_SOAP_ENV__Reason(soap, data, "SOAP-ENV:Reason", NULL) || soap_end_send(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_get_SOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *, const char*, const char*);
|
||||
|
||||
#ifndef soap_read_SOAP_ENV__Reason
|
||||
#define soap_read_SOAP_ENV__Reason(soap, data) ( soap_begin_recv(soap) || !soap_get_SOAP_ENV__Reason(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
SOAP_FMAC1 struct SOAP_ENV__Reason * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Reason(struct soap*, int, const char*, const char*, size_t*);
|
||||
|
||||
inline struct SOAP_ENV__Reason * soap_new_SOAP_ENV__Reason(struct soap *soap, int n = -1) { return soap_instantiate_SOAP_ENV__Reason(soap, n, NULL, NULL, NULL); }
|
||||
|
||||
inline struct SOAP_ENV__Reason * soap_new_req_SOAP_ENV__Reason(struct soap *soap) { struct SOAP_ENV__Reason *_p = soap_instantiate_SOAP_ENV__Reason(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_SOAP_ENV__Reason(soap, _p); } return _p; }
|
||||
|
||||
inline struct SOAP_ENV__Reason * soap_new_set_SOAP_ENV__Reason(struct soap *soap, char *SOAP_ENV__Text) { struct SOAP_ENV__Reason *_p = soap_instantiate_SOAP_ENV__Reason(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_SOAP_ENV__Reason(soap, _p); _p->SOAP_ENV__Text = SOAP_ENV__Text; } return _p; }
|
||||
|
||||
inline void soap_delete_SOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *p) { soap_delete(soap, p); }
|
||||
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Reason(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_SOAP_ENV__Detail
|
||||
#define SOAP_TYPE_SOAP_ENV__Detail (10)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Detail(struct soap*, const struct SOAP_ENV__Detail *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Detail(struct soap*, const char*, int, const struct SOAP_ENV__Detail *, const char*);
|
||||
SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_in_SOAP_ENV__Detail(struct soap*, const char*, struct SOAP_ENV__Detail *, const char*);
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Detail(struct soap*, const struct SOAP_ENV__Detail *, const char*, const char*);
|
||||
|
||||
#ifndef soap_write_SOAP_ENV__Detail
|
||||
#define soap_write_SOAP_ENV__Detail(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_SOAP_ENV__Detail(soap, data),0) || soap_put_SOAP_ENV__Detail(soap, data, "SOAP-ENV:Detail", NULL) || soap_end_send(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_get_SOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *, const char*, const char*);
|
||||
|
||||
#ifndef soap_read_SOAP_ENV__Detail
|
||||
#define soap_read_SOAP_ENV__Detail(soap, data) ( soap_begin_recv(soap) || !soap_get_SOAP_ENV__Detail(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
SOAP_FMAC1 struct SOAP_ENV__Detail * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Detail(struct soap*, int, const char*, const char*, size_t*);
|
||||
|
||||
inline struct SOAP_ENV__Detail * soap_new_SOAP_ENV__Detail(struct soap *soap, int n = -1) { return soap_instantiate_SOAP_ENV__Detail(soap, n, NULL, NULL, NULL); }
|
||||
|
||||
inline struct SOAP_ENV__Detail * soap_new_req_SOAP_ENV__Detail(struct soap *soap, int __type, void *fault) { struct SOAP_ENV__Detail *_p = soap_instantiate_SOAP_ENV__Detail(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_SOAP_ENV__Detail(soap, _p); _p->__type = __type; _p->fault = fault; } return _p; }
|
||||
|
||||
inline struct SOAP_ENV__Detail * soap_new_set_SOAP_ENV__Detail(struct soap *soap, char *__any, int __type, void *fault) { struct SOAP_ENV__Detail *_p = soap_instantiate_SOAP_ENV__Detail(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_SOAP_ENV__Detail(soap, _p); _p->__any = __any; _p->__type = __type; _p->fault = fault; } return _p; }
|
||||
|
||||
inline void soap_delete_SOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *p) { soap_delete(soap, p); }
|
||||
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Detail(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_SOAP_ENV__Code
|
||||
#define SOAP_TYPE_SOAP_ENV__Code (8)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Code(struct soap*, const struct SOAP_ENV__Code *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Code(struct soap*, const char*, int, const struct SOAP_ENV__Code *, const char*);
|
||||
SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_in_SOAP_ENV__Code(struct soap*, const char*, struct SOAP_ENV__Code *, const char*);
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Code(struct soap*, const struct SOAP_ENV__Code *, const char*, const char*);
|
||||
|
||||
#ifndef soap_write_SOAP_ENV__Code
|
||||
#define soap_write_SOAP_ENV__Code(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_SOAP_ENV__Code(soap, data),0) || soap_put_SOAP_ENV__Code(soap, data, "SOAP-ENV:Code", NULL) || soap_end_send(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_get_SOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *, const char*, const char*);
|
||||
|
||||
#ifndef soap_read_SOAP_ENV__Code
|
||||
#define soap_read_SOAP_ENV__Code(soap, data) ( soap_begin_recv(soap) || !soap_get_SOAP_ENV__Code(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
SOAP_FMAC1 struct SOAP_ENV__Code * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Code(struct soap*, int, const char*, const char*, size_t*);
|
||||
|
||||
inline struct SOAP_ENV__Code * soap_new_SOAP_ENV__Code(struct soap *soap, int n = -1) { return soap_instantiate_SOAP_ENV__Code(soap, n, NULL, NULL, NULL); }
|
||||
|
||||
inline struct SOAP_ENV__Code * soap_new_req_SOAP_ENV__Code(struct soap *soap) { struct SOAP_ENV__Code *_p = soap_instantiate_SOAP_ENV__Code(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_SOAP_ENV__Code(soap, _p); } return _p; }
|
||||
|
||||
inline struct SOAP_ENV__Code * soap_new_set_SOAP_ENV__Code(struct soap *soap, char *SOAP_ENV__Value, struct SOAP_ENV__Code *SOAP_ENV__Subcode) { struct SOAP_ENV__Code *_p = soap_instantiate_SOAP_ENV__Code(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_SOAP_ENV__Code(soap, _p); _p->SOAP_ENV__Value = SOAP_ENV__Value; _p->SOAP_ENV__Subcode = SOAP_ENV__Subcode; } return _p; }
|
||||
|
||||
inline void soap_delete_SOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *p) { soap_delete(soap, p); }
|
||||
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Code(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_SOAP_ENV__Header
|
||||
#define SOAP_TYPE_SOAP_ENV__Header (7)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Header(struct soap*, struct SOAP_ENV__Header *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Header(struct soap*, const struct SOAP_ENV__Header *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Header(struct soap*, const char*, int, const struct SOAP_ENV__Header *, const char*);
|
||||
SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_in_SOAP_ENV__Header(struct soap*, const char*, struct SOAP_ENV__Header *, const char*);
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Header(struct soap*, const struct SOAP_ENV__Header *, const char*, const char*);
|
||||
|
||||
#ifndef soap_write_SOAP_ENV__Header
|
||||
#define soap_write_SOAP_ENV__Header(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_SOAP_ENV__Header(soap, data),0) || soap_put_SOAP_ENV__Header(soap, data, "SOAP-ENV:Header", NULL) || soap_end_send(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_get_SOAP_ENV__Header(struct soap*, struct SOAP_ENV__Header *, const char*, const char*);
|
||||
|
||||
#ifndef soap_read_SOAP_ENV__Header
|
||||
#define soap_read_SOAP_ENV__Header(soap, data) ( soap_begin_recv(soap) || !soap_get_SOAP_ENV__Header(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
SOAP_FMAC1 struct SOAP_ENV__Header * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Header(struct soap*, int, const char*, const char*, size_t*);
|
||||
|
||||
inline struct SOAP_ENV__Header * soap_new_SOAP_ENV__Header(struct soap *soap, int n = -1) { return soap_instantiate_SOAP_ENV__Header(soap, n, NULL, NULL, NULL); }
|
||||
|
||||
inline struct SOAP_ENV__Header * soap_new_req_SOAP_ENV__Header(struct soap *soap) { struct SOAP_ENV__Header *_p = soap_instantiate_SOAP_ENV__Header(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_SOAP_ENV__Header(soap, _p); } return _p; }
|
||||
|
||||
inline struct SOAP_ENV__Header * soap_new_set_SOAP_ENV__Header(struct soap *soap) { struct SOAP_ENV__Header *_p = soap_instantiate_SOAP_ENV__Header(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_SOAP_ENV__Header(soap, _p); } return _p; }
|
||||
|
||||
inline void soap_delete_SOAP_ENV__Header(struct soap *soap, struct SOAP_ENV__Header *p) { soap_delete(soap, p); }
|
||||
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Header(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_PointerToSOAP_ENV__Reason
|
||||
#define SOAP_TYPE_PointerToSOAP_ENV__Reason (16)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *const*);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Reason(struct soap*, const char *, int, struct SOAP_ENV__Reason *const*, const char *);
|
||||
SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Reason(struct soap*, const char*, struct SOAP_ENV__Reason **, const char*);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *const*, const char*, const char*);
|
||||
|
||||
#ifndef soap_write_PointerToSOAP_ENV__Reason
|
||||
#define soap_write_PointerToSOAP_ENV__Reason(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToSOAP_ENV__Reason(soap, data),0) || soap_put_PointerToSOAP_ENV__Reason(soap, data, "SOAP-ENV:Reason", NULL) || soap_end_send(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason **, const char*, const char*);
|
||||
|
||||
#ifndef soap_read_PointerToSOAP_ENV__Reason
|
||||
#define soap_read_PointerToSOAP_ENV__Reason(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToSOAP_ENV__Reason(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_PointerToSOAP_ENV__Detail
|
||||
#define SOAP_TYPE_PointerToSOAP_ENV__Detail (15)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *const*);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Detail(struct soap*, const char *, int, struct SOAP_ENV__Detail *const*, const char *);
|
||||
SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Detail(struct soap*, const char*, struct SOAP_ENV__Detail **, const char*);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *const*, const char*, const char*);
|
||||
|
||||
#ifndef soap_write_PointerToSOAP_ENV__Detail
|
||||
#define soap_write_PointerToSOAP_ENV__Detail(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToSOAP_ENV__Detail(soap, data),0) || soap_put_PointerToSOAP_ENV__Detail(soap, data, "SOAP-ENV:Detail", NULL) || soap_end_send(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail **, const char*, const char*);
|
||||
|
||||
#ifndef soap_read_PointerToSOAP_ENV__Detail
|
||||
#define soap_read_PointerToSOAP_ENV__Detail(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToSOAP_ENV__Detail(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_PointerToSOAP_ENV__Code
|
||||
#define SOAP_TYPE_PointerToSOAP_ENV__Code (9)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *const*);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Code(struct soap*, const char *, int, struct SOAP_ENV__Code *const*, const char *);
|
||||
SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Code(struct soap*, const char*, struct SOAP_ENV__Code **, const char*);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *const*, const char*, const char*);
|
||||
|
||||
#ifndef soap_write_PointerToSOAP_ENV__Code
|
||||
#define soap_write_PointerToSOAP_ENV__Code(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_PointerToSOAP_ENV__Code(soap, data),0) || soap_put_PointerToSOAP_ENV__Code(soap, data, "SOAP-ENV:Code", NULL) || soap_end_send(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code **, const char*, const char*);
|
||||
|
||||
#ifndef soap_read_PointerToSOAP_ENV__Code
|
||||
#define soap_read_PointerToSOAP_ENV__Code(soap, data) ( soap_begin_recv(soap) || !soap_get_PointerToSOAP_ENV__Code(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE__QName
|
||||
#define SOAP_TYPE__QName (5)
|
||||
#endif
|
||||
|
||||
#define soap_default__QName(soap, a) soap_default_string(soap, a)
|
||||
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__QName(struct soap*, char *const*);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out__QName(struct soap*, const char*, int, char*const*, const char*);
|
||||
SOAP_FMAC3 char * * SOAP_FMAC4 soap_in__QName(struct soap*, const char*, char **, const char*);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put__QName(struct soap*, char *const*, const char*, const char*);
|
||||
|
||||
#ifndef soap_write__QName
|
||||
#define soap_write__QName(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize__QName(soap, data),0) || soap_put__QName(soap, data, "byte", NULL) || soap_end_send(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
SOAP_FMAC3 char ** SOAP_FMAC4 soap_get__QName(struct soap*, char **, const char*, const char*);
|
||||
|
||||
#ifndef soap_read__QName
|
||||
#define soap_read__QName(soap, data) ( soap_begin_recv(soap) || !soap_get__QName(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef SOAP_TYPE_string
|
||||
#define SOAP_TYPE_string (4)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_string(struct soap*, char **);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_string(struct soap*, char *const*);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_string(struct soap*, const char*, int, char*const*, const char*);
|
||||
SOAP_FMAC3 char * * SOAP_FMAC4 soap_in_string(struct soap*, const char*, char **, const char*);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_string(struct soap*, char *const*, const char*, const char*);
|
||||
|
||||
#ifndef soap_write_string
|
||||
#define soap_write_string(soap, data) ( soap_free_temp(soap), soap_begin_send(soap) || (soap_serialize_string(soap, data),0) || soap_put_string(soap, data, "byte", NULL) || soap_end_send(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
SOAP_FMAC3 char ** SOAP_FMAC4 soap_get_string(struct soap*, char **, const char*, const char*);
|
||||
|
||||
#ifndef soap_read_string
|
||||
#define soap_read_string(soap, data) ( soap_begin_recv(soap) || !soap_get_string(soap, data, NULL, NULL) || soap_end_recv(soap), (soap)->error )
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
/* End of envH.h */
|
||||
@@ -0,0 +1,163 @@
|
||||
/* envStub.h
|
||||
Generated by gSOAP 2.8.16 from env.h
|
||||
|
||||
Copyright(C) 2000-2013, Robert van Engelen, Genivia Inc. All Rights Reserved.
|
||||
The generated code is released under one of the following licenses:
|
||||
GPL or Genivia's license for commercial use.
|
||||
This program is released under the GPL with the additional exemption that
|
||||
compiling, linking, and/or using OpenSSL is allowed.
|
||||
*/
|
||||
|
||||
#ifndef envStub_H
|
||||
#define envStub_H
|
||||
#include "stdsoap2.h"
|
||||
#if GSOAP_VERSION != 20816
|
||||
# error "GSOAP VERSION MISMATCH IN GENERATED CODE: PLEASE REINSTALL PACKAGE"
|
||||
#endif
|
||||
|
||||
|
||||
/******************************************************************************\
|
||||
* *
|
||||
* Enumerations *
|
||||
* *
|
||||
\******************************************************************************/
|
||||
|
||||
|
||||
/******************************************************************************\
|
||||
* *
|
||||
* Types with Custom Serializers *
|
||||
* *
|
||||
\******************************************************************************/
|
||||
|
||||
|
||||
/******************************************************************************\
|
||||
* *
|
||||
* Classes and Structs *
|
||||
* *
|
||||
\******************************************************************************/
|
||||
|
||||
|
||||
#if 0 /* volatile type: do not declare here, declared elsewhere */
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_SOAP_ENV__Header
|
||||
#define SOAP_TYPE_SOAP_ENV__Header (7)
|
||||
/* SOAP Header: */
|
||||
struct SOAP_ENV__Header
|
||||
{
|
||||
public:
|
||||
int soap_type() const { return 7; } /* = unique id SOAP_TYPE_SOAP_ENV__Header */
|
||||
#ifdef WITH_NOEMPTYSTRUCT
|
||||
private:
|
||||
char dummy; /* dummy member to enable compilation */
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_SOAP_ENV__Code
|
||||
#define SOAP_TYPE_SOAP_ENV__Code (8)
|
||||
/* SOAP Fault Code: */
|
||||
struct SOAP_ENV__Code
|
||||
{
|
||||
public:
|
||||
char *SOAP_ENV__Value; /* optional element of type xsd:QName */
|
||||
struct SOAP_ENV__Code *SOAP_ENV__Subcode; /* optional element of type SOAP-ENV:Code */
|
||||
public:
|
||||
int soap_type() const { return 8; } /* = unique id SOAP_TYPE_SOAP_ENV__Code */
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_SOAP_ENV__Detail
|
||||
#define SOAP_TYPE_SOAP_ENV__Detail (10)
|
||||
/* SOAP-ENV:Detail */
|
||||
struct SOAP_ENV__Detail
|
||||
{
|
||||
public:
|
||||
char *__any;
|
||||
int __type; /* any type of element <fault> (defined below) */
|
||||
void *fault; /* transient */
|
||||
public:
|
||||
int soap_type() const { return 10; } /* = unique id SOAP_TYPE_SOAP_ENV__Detail */
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_SOAP_ENV__Reason
|
||||
#define SOAP_TYPE_SOAP_ENV__Reason (13)
|
||||
/* SOAP-ENV:Reason */
|
||||
struct SOAP_ENV__Reason
|
||||
{
|
||||
public:
|
||||
char *SOAP_ENV__Text; /* optional element of type xsd:string */
|
||||
public:
|
||||
int soap_type() const { return 13; } /* = unique id SOAP_TYPE_SOAP_ENV__Reason */
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_SOAP_ENV__Fault
|
||||
#define SOAP_TYPE_SOAP_ENV__Fault (14)
|
||||
/* SOAP Fault: */
|
||||
struct SOAP_ENV__Fault
|
||||
{
|
||||
public:
|
||||
char *faultcode; /* optional element of type xsd:QName */
|
||||
char *faultstring; /* optional element of type xsd:string */
|
||||
char *faultactor; /* optional element of type xsd:string */
|
||||
struct SOAP_ENV__Detail *detail; /* optional element of type SOAP-ENV:Detail */
|
||||
struct SOAP_ENV__Code *SOAP_ENV__Code; /* optional element of type SOAP-ENV:Code */
|
||||
struct SOAP_ENV__Reason *SOAP_ENV__Reason; /* optional element of type SOAP-ENV:Reason */
|
||||
char *SOAP_ENV__Node; /* optional element of type xsd:string */
|
||||
char *SOAP_ENV__Role; /* optional element of type xsd:string */
|
||||
struct SOAP_ENV__Detail *SOAP_ENV__Detail; /* optional element of type SOAP-ENV:Detail */
|
||||
public:
|
||||
int soap_type() const { return 14; } /* = unique id SOAP_TYPE_SOAP_ENV__Fault */
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/******************************************************************************\
|
||||
* *
|
||||
* Typedefs *
|
||||
* *
|
||||
\******************************************************************************/
|
||||
|
||||
#ifndef SOAP_TYPE__QName
|
||||
#define SOAP_TYPE__QName (5)
|
||||
typedef char *_QName;
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE__XML
|
||||
#define SOAP_TYPE__XML (6)
|
||||
typedef char *_XML;
|
||||
#endif
|
||||
|
||||
|
||||
/******************************************************************************\
|
||||
* *
|
||||
* Externals *
|
||||
* *
|
||||
\******************************************************************************/
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
/* End of envStub.h */
|
||||
@@ -0,0 +1,20 @@
|
||||
#ifndef __EXCEPTIONS_H__
|
||||
#define __EXCEPTIONS_H__
|
||||
|
||||
#include "vars.h"
|
||||
|
||||
class bad_parameter{
|
||||
public:
|
||||
|
||||
bad_parameter( CVars &out, const char *name );
|
||||
};
|
||||
|
||||
class err : public std::exception
|
||||
{
|
||||
|
||||
public:
|
||||
err( char *msg );
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
#ifndef __mx_groups_h__
|
||||
#define __mx_groups_h__
|
||||
|
||||
#include "vars.h"
|
||||
|
||||
|
||||
long groups_calls(CVars in, CVars &out);
|
||||
long CreateCoreGradeGroup(CVars in, CVars &out);
|
||||
long CoreGradeGroupCreateMember(CVars in, CVars &out);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,140 @@
|
||||
/*-
|
||||
* HMAC-SHA-224/256/384/512 implementation
|
||||
* Last update: 06/15/2005
|
||||
* Issue date: 06/15/2005
|
||||
*
|
||||
* Copyright (C) 2005 Olivier Gay <olivier.gay@a3.epfl.ch>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the name of the project nor the names of its contributors
|
||||
* may be used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef _HMAC_SHA2_H
|
||||
#define _HMAC_SHA2_H
|
||||
|
||||
#include "sha2.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
sha224_ctx ctx_inside;
|
||||
sha224_ctx ctx_outside;
|
||||
|
||||
/* for hmac_reinit */
|
||||
sha224_ctx ctx_inside_reinit;
|
||||
sha224_ctx ctx_outside_reinit;
|
||||
|
||||
unsigned char block_ipad[SHA224_BLOCK_SIZE];
|
||||
unsigned char block_opad[SHA224_BLOCK_SIZE];
|
||||
} hmac_sha224_ctx;
|
||||
|
||||
typedef struct {
|
||||
sha256_ctx ctx_inside;
|
||||
sha256_ctx ctx_outside;
|
||||
|
||||
/* for hmac_reinit */
|
||||
sha256_ctx ctx_inside_reinit;
|
||||
sha256_ctx ctx_outside_reinit;
|
||||
|
||||
unsigned char block_ipad[SHA256_BLOCK_SIZE];
|
||||
unsigned char block_opad[SHA256_BLOCK_SIZE];
|
||||
} hmac_sha256_ctx;
|
||||
|
||||
typedef struct {
|
||||
sha384_ctx ctx_inside;
|
||||
sha384_ctx ctx_outside;
|
||||
|
||||
/* for hmac_reinit */
|
||||
sha384_ctx ctx_inside_reinit;
|
||||
sha384_ctx ctx_outside_reinit;
|
||||
|
||||
unsigned char block_ipad[SHA384_BLOCK_SIZE];
|
||||
unsigned char block_opad[SHA384_BLOCK_SIZE];
|
||||
} hmac_sha384_ctx;
|
||||
|
||||
typedef struct {
|
||||
sha512_ctx ctx_inside;
|
||||
sha512_ctx ctx_outside;
|
||||
|
||||
/* for hmac_reinit */
|
||||
sha512_ctx ctx_inside_reinit;
|
||||
sha512_ctx ctx_outside_reinit;
|
||||
|
||||
unsigned char block_ipad[SHA512_BLOCK_SIZE];
|
||||
unsigned char block_opad[SHA512_BLOCK_SIZE];
|
||||
} hmac_sha512_ctx;
|
||||
|
||||
void hmac_sha224_init(hmac_sha224_ctx *ctx, unsigned char *key,
|
||||
unsigned int key_size);
|
||||
void hmac_sha224_reinit(hmac_sha224_ctx *ctx);
|
||||
void hmac_sha224_update(hmac_sha224_ctx *ctx, unsigned char *message,
|
||||
unsigned int message_len);
|
||||
void hmac_sha224_final(hmac_sha224_ctx *ctx, unsigned char *mac,
|
||||
unsigned int mac_size);
|
||||
void hmac_sha224(unsigned char *key, unsigned int key_size,
|
||||
unsigned char *message, unsigned int message_len,
|
||||
unsigned char *mac, unsigned mac_size);
|
||||
|
||||
void hmac_sha256_init(hmac_sha256_ctx *ctx, unsigned char *key,
|
||||
unsigned int key_size);
|
||||
void hmac_sha256_reinit(hmac_sha256_ctx *ctx);
|
||||
void hmac_sha256_update(hmac_sha256_ctx *ctx, unsigned char *message,
|
||||
unsigned int message_len);
|
||||
void hmac_sha256_final(hmac_sha256_ctx *ctx, unsigned char *mac,
|
||||
unsigned int mac_size);
|
||||
void hmac_sha256(unsigned char *key, unsigned int key_size,
|
||||
unsigned char *message, unsigned int message_len,
|
||||
unsigned char *mac, unsigned mac_size);
|
||||
|
||||
void hmac_sha384_init(hmac_sha384_ctx *ctx, unsigned char *key,
|
||||
unsigned int key_size);
|
||||
void hmac_sha384_reinit(hmac_sha384_ctx *ctx);
|
||||
void hmac_sha384_update(hmac_sha384_ctx *ctx, unsigned char *message,
|
||||
unsigned int message_len);
|
||||
void hmac_sha384_final(hmac_sha384_ctx *ctx, unsigned char *mac,
|
||||
unsigned int mac_size);
|
||||
void hmac_sha384(unsigned char *key, unsigned int key_size,
|
||||
unsigned char *message, unsigned int message_len,
|
||||
unsigned char *mac, unsigned mac_size);
|
||||
|
||||
void hmac_sha512_init(hmac_sha512_ctx *ctx, unsigned char *key,
|
||||
unsigned int key_size);
|
||||
void hmac_sha512_reinit(hmac_sha512_ctx *ctx);
|
||||
void hmac_sha512_update(hmac_sha512_ctx *ctx, unsigned char *message,
|
||||
unsigned int message_len);
|
||||
void hmac_sha512_final(hmac_sha512_ctx *ctx, unsigned char *mac,
|
||||
unsigned int mac_size);
|
||||
void hmac_sha512(unsigned char *key, unsigned int key_size,
|
||||
unsigned char *message, unsigned int message_len,
|
||||
unsigned char *mac, unsigned mac_size);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* ! _HMAC_SHA2_H */
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
#ifndef __INPUT_H__
|
||||
#define __INPUT_H__
|
||||
|
||||
#include "vars.h"
|
||||
#include "exceptions.h"
|
||||
|
||||
void REQ_STRING( CVars &in, const char * name, int min_len, int max_len, const char *regex ) throw (bad_parameter);
|
||||
long REQ_LONG( CVars &in, const char *name, long min, long max );
|
||||
bool OptionalSpecified( CVars &in, const char * name );
|
||||
|
||||
#define OPTIONAL(mapname, var) \
|
||||
if ( OptionalSpecified(mapname,var) )
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
#ifndef __INTERSWITCH_H__
|
||||
#define __INTERSWITCH_H__
|
||||
|
||||
#include "vars.h"
|
||||
|
||||
#include <cstring>
|
||||
#include <ext/hash_map>
|
||||
|
||||
using namespace std;
|
||||
using namespace __gnu_cxx;
|
||||
|
||||
/*****************************************************************************/
|
||||
struct eqstr{
|
||||
bool operator()(const char* s1, const char* s2) const {
|
||||
return strcmp(s1,s2)==0;
|
||||
}
|
||||
};
|
||||
/*****************************************************************************/
|
||||
|
||||
long interswitch_config_ssl(const char *keyfile, const char *password, const char *cacert, long version);
|
||||
long interswitch_getBillers(const char *endpoint, const char *tid, int billerId, int categoryId, int channelId, const char *billerName, char *status, long(*save)(hash_map<const char*, const char*, hash<const char*>, eqstr>));
|
||||
long interswitch_getBillerPaymentItems(const char *endpoint, const char *tid, int billerId, char *status, long(*save)(const char*, hash_map<const char*, const char*, hash<const char*>, eqstr>));
|
||||
long interswitch_getBillerCategories(const char *endpoint, char *error, long(*save)(hash_map<const char*, const char*, hash<const char*>, eqstr>));
|
||||
string interswitch_getBankCodes(const char *endpoint, const char *tid, char *status);
|
||||
string interswitch_queryTransaction(const char *endpoint, const char *tid, const char *transferCode, const char *requestReference, char *status, char *transactionResponseCode);
|
||||
long interswitch_getBalance(const char *endpoint, const char *tid, const char *mkey, const char *pin, char *status);
|
||||
string interswitch_transferFunds(const char *endpoint, const char *tid, const char *mkey, const char *pin, char *error, const char *account, const char *uniqueRef, const char *bankCode, long currency, long amount ,CVars trans_info);
|
||||
string interswitch_SendBillPaymentAdvice(const char *endpoint, const char *tid, long amount, const char *paymentCode, long customerId, const char *requestReference, char *status, char *transactionRef,char *customer_mobile,char *customer_email);
|
||||
string interswitch_doTransfer(const char *endpoint, const char *tid, CVars trans_info, char *error);
|
||||
//char * interswitch_pinChange(const char *tid, const char *mkey, const char *pin, char *status);
|
||||
long interswitch_test();
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
vi:ts=2
|
||||
*/
|
||||
@@ -0,0 +1,12 @@
|
||||
|
||||
#include "interswitchH.h"
|
||||
SOAP_NMAC struct Namespace interswitch_namespaces[] =
|
||||
{
|
||||
{"SOAP-ENV", "http://schemas.xmlsoap.org/soap/envelope/", "http://schemas.xmlsoap.org/soap/envelope/", NULL},
|
||||
{"SOAP-ENC", "http://www.w3.org/2003/05/soap-encoding", "http://www.w3.org/2003/05/soap-encoding", NULL},
|
||||
{"xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL},
|
||||
{"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL},
|
||||
{"interswitch2", "http://schemas.microsoft.com/2003/10/Serialization/", NULL, NULL},
|
||||
{"interswitch", "http://services.interswitchng.com/quicktellerservice/", NULL, NULL},
|
||||
{NULL, NULL, NULL, NULL}
|
||||
};
|
||||
@@ -0,0 +1,171 @@
|
||||
/* interswitchBasicHttpBinding_USCOREQuickTellerServiceProxy.h
|
||||
Generated by gSOAP 2.7.16 from QuickTellerService.h
|
||||
Copyright(C) 2000-2010, Robert van Engelen, Genivia Inc. All Rights Reserved.
|
||||
This part of the software is released under one of the following licenses:
|
||||
GPL, the gSOAP public license, or Genivia's license for commercial use.
|
||||
*/
|
||||
|
||||
#ifndef interswitchBasicHttpBinding_USCOREQuickTellerServiceProxy_H
|
||||
#define interswitchBasicHttpBinding_USCOREQuickTellerServiceProxy_H
|
||||
#include "interswitchH.h"
|
||||
|
||||
namespace interswitch {
|
||||
|
||||
class SOAP_CMAC BasicHttpBinding_USCOREQuickTellerServiceProxy : public soap
|
||||
{ public:
|
||||
/// Endpoint URL of service 'BasicHttpBinding_USCOREQuickTellerServiceProxy' (change as needed)
|
||||
const char *soap_endpoint;
|
||||
/// Constructor
|
||||
BasicHttpBinding_USCOREQuickTellerServiceProxy();
|
||||
/// Constructor with copy of another engine state
|
||||
BasicHttpBinding_USCOREQuickTellerServiceProxy(const struct soap&);
|
||||
/// Constructor with engine input+output mode control
|
||||
BasicHttpBinding_USCOREQuickTellerServiceProxy(soap_mode iomode);
|
||||
/// Constructor with engine input and output mode control
|
||||
BasicHttpBinding_USCOREQuickTellerServiceProxy(soap_mode imode, soap_mode omode);
|
||||
/// Destructor frees deserialized data
|
||||
virtual ~BasicHttpBinding_USCOREQuickTellerServiceProxy();
|
||||
/// Initializer used by constructors
|
||||
virtual void BasicHttpBinding_USCOREQuickTellerServiceProxy_init(soap_mode imode, soap_mode omode);
|
||||
/// Delete all deserialized data (uses soap_destroy and soap_end)
|
||||
virtual void destroy();
|
||||
/// Disables and removes SOAP Header from message
|
||||
virtual void soap_noheader();
|
||||
/// Get SOAP Fault structure (NULL when absent)
|
||||
virtual const SOAP_ENV__Fault *soap_fault();
|
||||
/// Get SOAP Fault string (NULL when absent)
|
||||
virtual const char *soap_fault_string();
|
||||
/// Get SOAP Fault detail as string (NULL when absent)
|
||||
virtual const char *soap_fault_detail();
|
||||
/// Force close connection (normally automatic, except for send_X ops)
|
||||
virtual int soap_close_socket();
|
||||
/// Print fault
|
||||
virtual void soap_print_fault(FILE*);
|
||||
#ifndef WITH_LEAN
|
||||
/// Print fault to stream
|
||||
virtual void soap_stream_fault(std::ostream&);
|
||||
/// Put fault into buffer
|
||||
virtual char *soap_sprint_fault(char *buf, size_t len);
|
||||
#endif
|
||||
|
||||
/// Web service operation 'ValidateCustomer' (returns error code or SOAP_OK)
|
||||
virtual int ValidateCustomer(_interswitch__ValidateCustomer *interswitch__ValidateCustomer, _interswitch__ValidateCustomerResponse *interswitch__ValidateCustomerResponse);
|
||||
|
||||
/// Web service operation 'DoTransfer' (returns error code or SOAP_OK)
|
||||
virtual int DoTransfer(_interswitch__DoTransfer *interswitch__DoTransfer, _interswitch__DoTransferResponse *interswitch__DoTransferResponse);
|
||||
|
||||
/// Web service operation 'CancelTransfer' (returns error code or SOAP_OK)
|
||||
virtual int CancelTransfer(_interswitch__CancelTransfer *interswitch__CancelTransfer, _interswitch__CancelTransferResponse *interswitch__CancelTransferResponse);
|
||||
|
||||
/// Web service operation 'SendSessionKey' (returns error code or SOAP_OK)
|
||||
virtual int SendSessionKey(_interswitch__SendSessionKey *interswitch__SendSessionKey, _interswitch__SendSessionKeyResponse *interswitch__SendSessionKeyResponse);
|
||||
|
||||
/// Web service operation 'QueryTransfer' (returns error code or SOAP_OK)
|
||||
virtual int QueryTransfer(_interswitch__QueryTransfer *interswitch__QueryTransfer, _interswitch__QueryTransferResponse *interswitch__QueryTransferResponse);
|
||||
|
||||
/// Web service operation 'AuthoriseCashOut' (returns error code or SOAP_OK)
|
||||
virtual int AuthoriseCashOut(_interswitch__AuthoriseCashOut *interswitch__AuthoriseCashOut, _interswitch__AuthoriseCashOutResponse *interswitch__AuthoriseCashOutResponse);
|
||||
|
||||
/// Web service operation 'AuthoriseAccountCashOut' (returns error code or SOAP_OK)
|
||||
virtual int AuthoriseAccountCashOut(_interswitch__AuthoriseAccountCashOut *interswitch__AuthoriseAccountCashOut, _interswitch__AuthoriseAccountCashOutResponse *interswitch__AuthoriseAccountCashOutResponse);
|
||||
|
||||
/// Web service operation 'ReverseCashOut' (returns error code or SOAP_OK)
|
||||
virtual int ReverseCashOut(_interswitch__ReverseCashOut *interswitch__ReverseCashOut, _interswitch__ReverseCashOutResponse *interswitch__ReverseCashOutResponse);
|
||||
|
||||
/// Web service operation 'StatusCheck' (returns error code or SOAP_OK)
|
||||
virtual int StatusCheck(_interswitch__StatusCheck *interswitch__StatusCheck, _interswitch__StatusCheckResponse *interswitch__StatusCheckResponse);
|
||||
|
||||
/// Web service operation 'QueryTransaction' (returns error code or SOAP_OK)
|
||||
virtual int QueryTransaction(_interswitch__QueryTransaction *interswitch__QueryTransaction, _interswitch__QueryTransactionResponse *interswitch__QueryTransactionResponse);
|
||||
|
||||
/// Web service operation 'GetSystemSettings' (returns error code or SOAP_OK)
|
||||
virtual int GetSystemSettings(_interswitch__GetSystemSettings *interswitch__GetSystemSettings, _interswitch__GetSystemSettingsResponse *interswitch__GetSystemSettingsResponse);
|
||||
|
||||
/// Web service operation 'CreateUser' (returns error code or SOAP_OK)
|
||||
virtual int CreateUser(_interswitch__CreateUser *interswitch__CreateUser, _interswitch__CreateUserResponse *interswitch__CreateUserResponse);
|
||||
|
||||
/// Web service operation 'ActivateUser' (returns error code or SOAP_OK)
|
||||
virtual int ActivateUser(_interswitch__ActivateUser *interswitch__ActivateUser, _interswitch__ActivateUserResponse *interswitch__ActivateUserResponse);
|
||||
|
||||
/// Web service operation 'UpdateUser' (returns error code or SOAP_OK)
|
||||
virtual int UpdateUser(_interswitch__UpdateUser *interswitch__UpdateUser, _interswitch__UpdateUserResponse *interswitch__UpdateUserResponse);
|
||||
|
||||
/// Web service operation 'ChangePassword' (returns error code or SOAP_OK)
|
||||
virtual int ChangePassword(_interswitch__ChangePassword *interswitch__ChangePassword, _interswitch__ChangePasswordResponse *interswitch__ChangePasswordResponse);
|
||||
|
||||
/// Web service operation 'ResetPassword' (returns error code or SOAP_OK)
|
||||
virtual int ResetPassword(_interswitch__ResetPassword *interswitch__ResetPassword, _interswitch__ResetPasswordResponse *interswitch__ResetPasswordResponse);
|
||||
|
||||
/// Web service operation 'AuthenticateUser' (returns error code or SOAP_OK)
|
||||
virtual int AuthenticateUser(_interswitch__AuthenticateUser *interswitch__AuthenticateUser, _interswitch__AuthenticateUserResponse *interswitch__AuthenticateUserResponse);
|
||||
|
||||
/// Web service operation 'AuthenticateUserSecurityToken' (returns error code or SOAP_OK)
|
||||
virtual int AuthenticateUserSecurityToken(_interswitch__AuthenticateUserSecurityToken *interswitch__AuthenticateUserSecurityToken, _interswitch__AuthenticateUserSecurityTokenResponse *interswitch__AuthenticateUserSecurityTokenResponse);
|
||||
|
||||
/// Web service operation 'GetUser' (returns error code or SOAP_OK)
|
||||
virtual int GetUser(_interswitch__GetUser *interswitch__GetUser, _interswitch__GetUserResponse *interswitch__GetUserResponse);
|
||||
|
||||
/// Web service operation 'GetBillers' (returns error code or SOAP_OK)
|
||||
virtual int GetBillers(_interswitch__GetBillers *interswitch__GetBillers, _interswitch__GetBillersResponse *interswitch__GetBillersResponse);
|
||||
|
||||
/// Web service operation 'GetLatestBillers' (returns error code or SOAP_OK)
|
||||
virtual int GetLatestBillers(_interswitch__GetLatestBillers *interswitch__GetLatestBillers, _interswitch__GetLatestBillersResponse *interswitch__GetLatestBillersResponse);
|
||||
|
||||
/// Web service operation 'GetFeaturedBillers' (returns error code or SOAP_OK)
|
||||
virtual int GetFeaturedBillers(_interswitch__GetFeaturedBillers *interswitch__GetFeaturedBillers, _interswitch__GetFeaturedBillersResponse *interswitch__GetFeaturedBillersResponse);
|
||||
|
||||
/// Web service operation 'GetBillerPaymentItems' (returns error code or SOAP_OK)
|
||||
virtual int GetBillerPaymentItems(_interswitch__GetBillerPaymentItems *interswitch__GetBillerPaymentItems, _interswitch__GetBillerPaymentItemsResponse *interswitch__GetBillerPaymentItemsResponse);
|
||||
|
||||
/// Web service operation 'GetBillerCategories' (returns error code or SOAP_OK)
|
||||
virtual int GetBillerCategories(_interswitch__GetBillerCategories *interswitch__GetBillerCategories, _interswitch__GetBillerCategoriesResponse *interswitch__GetBillerCategoriesResponse);
|
||||
|
||||
/// Web service operation 'DoBillPaymentInquiry' (returns error code or SOAP_OK)
|
||||
virtual int DoBillPaymentInquiry(_interswitch__DoBillPaymentInquiry *interswitch__DoBillPaymentInquiry, _interswitch__DoBillPaymentInquiryResponse *interswitch__DoBillPaymentInquiryResponse);
|
||||
|
||||
/// Web service operation 'AuthenticateCustomer' (returns error code or SOAP_OK)
|
||||
virtual int AuthenticateCustomer(_interswitch__AuthenticateCustomer *interswitch__AuthenticateCustomer, _interswitch__AuthenticateCustomerResponse *interswitch__AuthenticateCustomerResponse);
|
||||
|
||||
/// Web service operation 'SendBillPaymentAdvice' (returns error code or SOAP_OK)
|
||||
virtual int SendBillPaymentAdvice(_interswitch__SendBillPaymentAdvice *interswitch__SendBillPaymentAdvice, _interswitch__SendBillPaymentAdviceResponse *interswitch__SendBillPaymentAdviceResponse);
|
||||
|
||||
/// Web service operation 'SendPayments' (returns error code or SOAP_OK)
|
||||
virtual int SendPayments(_interswitch__SendPayments *interswitch__SendPayments, _interswitch__SendPaymentsResponse *interswitch__SendPaymentsResponse);
|
||||
|
||||
/// Web service operation 'AddCustomerBillerAccount' (returns error code or SOAP_OK)
|
||||
virtual int AddCustomerBillerAccount(_interswitch__AddCustomerBillerAccount *interswitch__AddCustomerBillerAccount, _interswitch__AddCustomerBillerAccountResponse *interswitch__AddCustomerBillerAccountResponse);
|
||||
|
||||
/// Web service operation 'GetCustomerBillerAccounts' (returns error code or SOAP_OK)
|
||||
virtual int GetCustomerBillerAccounts(_interswitch__GetCustomerBillerAccounts *interswitch__GetCustomerBillerAccounts, _interswitch__GetCustomerBillerAccountsResponse *interswitch__GetCustomerBillerAccountsResponse);
|
||||
|
||||
/// Web service operation 'GetCustomerPayments' (returns error code or SOAP_OK)
|
||||
virtual int GetCustomerPayments(_interswitch__GetCustomerPayments *interswitch__GetCustomerPayments, _interswitch__GetCustomerPaymentsResponse *interswitch__GetCustomerPaymentsResponse);
|
||||
|
||||
/// Web service operation 'AddBillerCustomer' (returns error code or SOAP_OK)
|
||||
virtual int AddBillerCustomer(_interswitch__AddBillerCustomer *interswitch__AddBillerCustomer, _interswitch__AddBillerCustomerResponse *interswitch__AddBillerCustomerResponse);
|
||||
|
||||
/// Web service operation 'GetCollectionsAccount' (returns error code or SOAP_OK)
|
||||
virtual int GetCollectionsAccount(_interswitch__GetCollectionsAccount *interswitch__GetCollectionsAccount, _interswitch__GetCollectionsAccountResponse *interswitch__GetCollectionsAccountResponse);
|
||||
|
||||
/// Web service operation 'GetBillersCollectionsAccount' (returns error code or SOAP_OK)
|
||||
virtual int GetBillersCollectionsAccount(_interswitch__GetBillersCollectionsAccount *interswitch__GetBillersCollectionsAccount, _interswitch__GetBillersCollectionsAccountResponse *interswitch__GetBillersCollectionsAccountResponse);
|
||||
|
||||
/// Web service operation 'EditCustomerBillerAccount' (returns error code or SOAP_OK)
|
||||
virtual int EditCustomerBillerAccount(_interswitch__EditCustomerBillerAccount *interswitch__EditCustomerBillerAccount, _interswitch__EditCustomerBillerAccountResponse *interswitch__EditCustomerBillerAccountResponse);
|
||||
|
||||
/// Web service operation 'ResendActivationToken' (returns error code or SOAP_OK)
|
||||
virtual int ResendActivationToken(_interswitch__ResendActivationToken *interswitch__ResendActivationToken, _interswitch__ResendActivationTokenResponse *interswitch__ResendActivationTokenResponse);
|
||||
|
||||
/// Web service operation 'DoCustomProcessing' (returns error code or SOAP_OK)
|
||||
virtual int DoCustomProcessing(_interswitch__DoCustomProcessing *interswitch__DoCustomProcessing, _interswitch__DoCustomProcessingResponse *interswitch__DoCustomProcessingResponse);
|
||||
|
||||
/// Web service operation 'CreateBiller' (returns error code or SOAP_OK)
|
||||
virtual int CreateBiller(_interswitch__CreateBiller *interswitch__CreateBiller, _interswitch__CreateBillerResponse *interswitch__CreateBillerResponse);
|
||||
|
||||
/// Web service operation 'VerifyBiller' (returns error code or SOAP_OK)
|
||||
virtual int VerifyBiller(_interswitch__VerifyBiller *interswitch__VerifyBiller, _interswitch__VerifyBillerResponse *interswitch__VerifyBillerResponse);
|
||||
};
|
||||
|
||||
} // namespace interswitch
|
||||
|
||||
#endif
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,28 @@
|
||||
#ifndef __INTERSITCH_SENDMONEY_H__
|
||||
#define __INTERSITCH_SENDMONEY_H__
|
||||
|
||||
#include <stdarg.h>
|
||||
#include "vars.h"
|
||||
#include "interswitch.h"
|
||||
|
||||
extern "C" {
|
||||
|
||||
long INTW_configure(CVars in, CVars &out);
|
||||
long INTW_getBillersSave(hash_map<const char*, const char*, hash<const char*>, eqstr> saveData);
|
||||
long INTW_getBillers(CVars in, CVars &out);
|
||||
long INTW_getSaveGeneric(const char *table, hash_map<const char*, const char*, hash<const char*>, eqstr> saveData);
|
||||
long INTW_getBillerPaymentItems(CVars in, CVars &out);
|
||||
long INTW_getBillerCategories(CVars in, CVars &out );
|
||||
long INTW_sendBillPaymentAdvice(CVars in, CVars &out );
|
||||
long INTW_doTransfer(CVars in, CVars &out );
|
||||
long INTW_queryTransaction(CVars in, CVars &out );
|
||||
long INTW_doServiceTransfer(CVars in, CVars &out );
|
||||
long do_transferPayment(CVars pm);
|
||||
long INTW_querySendMoneyTransaction(CVars in, CVars &out);
|
||||
long INTW_doCompleteSavedTransfer(CVars in, CVars &out);
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
#ifndef __storeface_list_h__
|
||||
#define __storeface_list_h__
|
||||
|
||||
typedef struct _list
|
||||
{
|
||||
char * text;
|
||||
struct _list * next;
|
||||
} TList;
|
||||
|
||||
|
||||
|
||||
void DestroyList( TList * top );
|
||||
|
||||
TList * Add( TList * list, char * text, long size );
|
||||
|
||||
TList * AddF( TList * list, char * format, ... );
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
#ifndef __PAYLID_H__
|
||||
#define __PAYLID_H__
|
||||
|
||||
long storeface_getAccountBalance(const char *endpoint, const char *tid, const char *key, char *status);
|
||||
long storeface_transferFund(const char *endpoint, const char *tid, const char *toDestination, const char *key, char *status);
|
||||
long storeface_checkTransferStatus(const char *endpoint, const char *tid, const char *transactionRef, const char *key, char *status);
|
||||
long storeface_directAirTimeTopUp(const char *endpoint, const char *tid, const char *topupData, const char *key, char *status, long &delivery_status);
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
vi:ts=2
|
||||
*/
|
||||
@@ -0,0 +1,11 @@
|
||||
|
||||
#include "paylidH.h"
|
||||
SOAP_NMAC struct Namespace paylid_namespaces[] =
|
||||
{
|
||||
{"SOAP-ENV", "http://schemas.xmlsoap.org/soap/envelope/", "http://www.w3.org/*/soap-envelope", NULL},
|
||||
{"SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/", "http://www.w3.org/*/soap-encoding", NULL},
|
||||
{"xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL},
|
||||
{"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL},
|
||||
{"paylid", "urn:paylidwsdl", NULL, NULL},
|
||||
{NULL, NULL, NULL, NULL}
|
||||
};
|
||||
@@ -0,0 +1,730 @@
|
||||
/* paylidH.h
|
||||
Generated by gSOAP 2.7.16 from PaylidService.h
|
||||
Copyright(C) 2000-2010, Robert van Engelen, Genivia Inc. All Rights Reserved.
|
||||
This part of the software is released under one of the following licenses:
|
||||
GPL, the gSOAP public license, or Genivia's license for commercial use.
|
||||
*/
|
||||
|
||||
#ifndef paylidH_H
|
||||
#define paylidH_H
|
||||
#include "paylidStub.h"
|
||||
|
||||
namespace paylid {
|
||||
#ifndef WITH_NOIDREF
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_markelement(struct soap*, const void*, int);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_putelement(struct soap*, const void*, const char*, int, int);
|
||||
SOAP_FMAC3 void *SOAP_FMAC4 soap_getelement(struct soap*, int*);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_putindependent(struct soap*);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_getindependent(struct soap*);
|
||||
#endif
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_ignore_element(struct soap*);
|
||||
|
||||
SOAP_FMAC3 void * SOAP_FMAC4 soap_instantiate(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_fdelete(struct soap_clist*);
|
||||
SOAP_FMAC3 void* SOAP_FMAC4 soap_class_id_enter(struct soap*, const char*, void*, int, size_t, const char*, const char*);
|
||||
|
||||
SOAP_FMAC3 void* SOAP_FMAC4 soap_container_id_forward(struct soap*, const char*, void*, size_t, int, int, size_t, unsigned int);
|
||||
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_container_insert(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_byte
|
||||
#define SOAP_TYPE_paylid_byte (3)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_byte(struct soap*, char *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_byte(struct soap*, const char*, int, const char *, const char*);
|
||||
SOAP_FMAC3 char * SOAP_FMAC4 soap_in_byte(struct soap*, const char*, char *, const char*);
|
||||
|
||||
#define soap_write_byte(soap, data) ( soap_begin_send(soap) || paylid::soap_put_byte(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_byte(struct soap*, const char *, const char*, const char*);
|
||||
|
||||
#define soap_read_byte(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_byte(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 char * SOAP_FMAC4 soap_get_byte(struct soap*, char *, const char*, const char*);
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_int
|
||||
#define SOAP_TYPE_paylid_int (1)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_int(struct soap*, int *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_int(struct soap*, const char*, int, const int *, const char*);
|
||||
SOAP_FMAC3 int * SOAP_FMAC4 soap_in_int(struct soap*, const char*, int *, const char*);
|
||||
|
||||
#define soap_write_int(soap, data) ( soap_begin_send(soap) || paylid::soap_put_int(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_int(struct soap*, const int *, const char*, const char*);
|
||||
|
||||
#define soap_read_int(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_int(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 int * SOAP_FMAC4 soap_get_int(struct soap*, int *, const char*, const char*);
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_std__string
|
||||
#define SOAP_TYPE_paylid_std__string (9)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__string(struct soap*, std::string *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__string(struct soap*, const std::string *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__string(struct soap*, const char*, int, const std::string*, const char*);
|
||||
SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_std__string(struct soap*, const char*, std::string*, const char*);
|
||||
|
||||
#define soap_write_std__string(soap, data) ( soap_begin_send(soap) || ((data)->soap_serialize(soap), 0) || (data)->soap_put(soap, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_std__string(struct soap*, const std::string *, const char*, const char*);
|
||||
|
||||
#define soap_read_std__string(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_std__string(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_std__string(struct soap*, std::string *, const char*, const char*);
|
||||
|
||||
#define soap_new_std__string(soap, n) soap_instantiate_std__string(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_std__string(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 std::string * SOAP_FMAC2 soap_instantiate_std__string(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__string(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_SOAP_ENV__Fault
|
||||
#define SOAP_TYPE_paylid_SOAP_ENV__Fault (48)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Fault(struct soap*, struct SOAP_ENV__Fault *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Fault(struct soap*, const struct SOAP_ENV__Fault *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Fault(struct soap*, const char*, int, const struct SOAP_ENV__Fault *, const char*);
|
||||
SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_in_SOAP_ENV__Fault(struct soap*, const char*, struct SOAP_ENV__Fault *, const char*);
|
||||
|
||||
#define soap_write_SOAP_ENV__Fault(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_SOAP_ENV__Fault(soap, data), 0) || paylid::soap_put_SOAP_ENV__Fault(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Fault(struct soap*, const struct SOAP_ENV__Fault *, const char*, const char*);
|
||||
|
||||
#define soap_read_SOAP_ENV__Fault(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_SOAP_ENV__Fault(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_get_SOAP_ENV__Fault(struct soap*, struct SOAP_ENV__Fault *, const char*, const char*);
|
||||
|
||||
#define soap_new_SOAP_ENV__Fault(soap, n) soap_instantiate_SOAP_ENV__Fault(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_SOAP_ENV__Fault(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct SOAP_ENV__Fault * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Fault(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Fault(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_SOAP_ENV__Reason
|
||||
#define SOAP_TYPE_paylid_SOAP_ENV__Reason (47)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Reason(struct soap*, const struct SOAP_ENV__Reason *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Reason(struct soap*, const char*, int, const struct SOAP_ENV__Reason *, const char*);
|
||||
SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_in_SOAP_ENV__Reason(struct soap*, const char*, struct SOAP_ENV__Reason *, const char*);
|
||||
|
||||
#define soap_write_SOAP_ENV__Reason(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_SOAP_ENV__Reason(soap, data), 0) || paylid::soap_put_SOAP_ENV__Reason(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Reason(struct soap*, const struct SOAP_ENV__Reason *, const char*, const char*);
|
||||
|
||||
#define soap_read_SOAP_ENV__Reason(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_SOAP_ENV__Reason(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_get_SOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *, const char*, const char*);
|
||||
|
||||
#define soap_new_SOAP_ENV__Reason(soap, n) soap_instantiate_SOAP_ENV__Reason(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_SOAP_ENV__Reason(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct SOAP_ENV__Reason * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Reason(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Reason(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_SOAP_ENV__Detail
|
||||
#define SOAP_TYPE_paylid_SOAP_ENV__Detail (44)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Detail(struct soap*, const struct SOAP_ENV__Detail *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Detail(struct soap*, const char*, int, const struct SOAP_ENV__Detail *, const char*);
|
||||
SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_in_SOAP_ENV__Detail(struct soap*, const char*, struct SOAP_ENV__Detail *, const char*);
|
||||
|
||||
#define soap_write_SOAP_ENV__Detail(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_SOAP_ENV__Detail(soap, data), 0) || paylid::soap_put_SOAP_ENV__Detail(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Detail(struct soap*, const struct SOAP_ENV__Detail *, const char*, const char*);
|
||||
|
||||
#define soap_read_SOAP_ENV__Detail(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_SOAP_ENV__Detail(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_get_SOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *, const char*, const char*);
|
||||
|
||||
#define soap_new_SOAP_ENV__Detail(soap, n) soap_instantiate_SOAP_ENV__Detail(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_SOAP_ENV__Detail(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct SOAP_ENV__Detail * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Detail(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Detail(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_SOAP_ENV__Code
|
||||
#define SOAP_TYPE_paylid_SOAP_ENV__Code (42)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Code(struct soap*, const struct SOAP_ENV__Code *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Code(struct soap*, const char*, int, const struct SOAP_ENV__Code *, const char*);
|
||||
SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_in_SOAP_ENV__Code(struct soap*, const char*, struct SOAP_ENV__Code *, const char*);
|
||||
|
||||
#define soap_write_SOAP_ENV__Code(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_SOAP_ENV__Code(soap, data), 0) || paylid::soap_put_SOAP_ENV__Code(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Code(struct soap*, const struct SOAP_ENV__Code *, const char*, const char*);
|
||||
|
||||
#define soap_read_SOAP_ENV__Code(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_SOAP_ENV__Code(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_get_SOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *, const char*, const char*);
|
||||
|
||||
#define soap_new_SOAP_ENV__Code(soap, n) soap_instantiate_SOAP_ENV__Code(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_SOAP_ENV__Code(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct SOAP_ENV__Code * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Code(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Code(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_SOAP_ENV__Header
|
||||
#define SOAP_TYPE_paylid_SOAP_ENV__Header (41)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Header(struct soap*, struct SOAP_ENV__Header *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Header(struct soap*, const struct SOAP_ENV__Header *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Header(struct soap*, const char*, int, const struct SOAP_ENV__Header *, const char*);
|
||||
SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_in_SOAP_ENV__Header(struct soap*, const char*, struct SOAP_ENV__Header *, const char*);
|
||||
|
||||
#define soap_write_SOAP_ENV__Header(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_SOAP_ENV__Header(soap, data), 0) || paylid::soap_put_SOAP_ENV__Header(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Header(struct soap*, const struct SOAP_ENV__Header *, const char*, const char*);
|
||||
|
||||
#define soap_read_SOAP_ENV__Header(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_SOAP_ENV__Header(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_get_SOAP_ENV__Header(struct soap*, struct SOAP_ENV__Header *, const char*, const char*);
|
||||
|
||||
#define soap_new_SOAP_ENV__Header(soap, n) soap_instantiate_SOAP_ENV__Header(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_SOAP_ENV__Header(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct SOAP_ENV__Header * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Header(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Header(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__getSupportedBanks
|
||||
#define SOAP_TYPE_paylid_paylid__getSupportedBanks (40)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_paylid__getSupportedBanks(struct soap*, struct paylid__getSupportedBanks *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_paylid__getSupportedBanks(struct soap*, const struct paylid__getSupportedBanks *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_paylid__getSupportedBanks(struct soap*, const char*, int, const struct paylid__getSupportedBanks *, const char*);
|
||||
SOAP_FMAC3 struct paylid__getSupportedBanks * SOAP_FMAC4 soap_in_paylid__getSupportedBanks(struct soap*, const char*, struct paylid__getSupportedBanks *, const char*);
|
||||
|
||||
#define soap_write_paylid__getSupportedBanks(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_paylid__getSupportedBanks(soap, data), 0) || paylid::soap_put_paylid__getSupportedBanks(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_paylid__getSupportedBanks(struct soap*, const struct paylid__getSupportedBanks *, const char*, const char*);
|
||||
|
||||
#define soap_read_paylid__getSupportedBanks(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_paylid__getSupportedBanks(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct paylid__getSupportedBanks * SOAP_FMAC4 soap_get_paylid__getSupportedBanks(struct soap*, struct paylid__getSupportedBanks *, const char*, const char*);
|
||||
|
||||
#define soap_new_paylid__getSupportedBanks(soap, n) soap_instantiate_paylid__getSupportedBanks(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_paylid__getSupportedBanks(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct paylid__getSupportedBanks * SOAP_FMAC2 soap_instantiate_paylid__getSupportedBanks(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_paylid__getSupportedBanks(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__getSupportedBanksResponse
|
||||
#define SOAP_TYPE_paylid_paylid__getSupportedBanksResponse (37)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_paylid__getSupportedBanksResponse(struct soap*, struct paylid__getSupportedBanksResponse *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_paylid__getSupportedBanksResponse(struct soap*, const struct paylid__getSupportedBanksResponse *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_paylid__getSupportedBanksResponse(struct soap*, const char*, int, const struct paylid__getSupportedBanksResponse *, const char*);
|
||||
SOAP_FMAC3 struct paylid__getSupportedBanksResponse * SOAP_FMAC4 soap_in_paylid__getSupportedBanksResponse(struct soap*, const char*, struct paylid__getSupportedBanksResponse *, const char*);
|
||||
|
||||
#define soap_write_paylid__getSupportedBanksResponse(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_paylid__getSupportedBanksResponse(soap, data), 0) || paylid::soap_put_paylid__getSupportedBanksResponse(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_paylid__getSupportedBanksResponse(struct soap*, const struct paylid__getSupportedBanksResponse *, const char*, const char*);
|
||||
|
||||
#define soap_read_paylid__getSupportedBanksResponse(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_paylid__getSupportedBanksResponse(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct paylid__getSupportedBanksResponse * SOAP_FMAC4 soap_get_paylid__getSupportedBanksResponse(struct soap*, struct paylid__getSupportedBanksResponse *, const char*, const char*);
|
||||
|
||||
#define soap_new_paylid__getSupportedBanksResponse(soap, n) soap_instantiate_paylid__getSupportedBanksResponse(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_paylid__getSupportedBanksResponse(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct paylid__getSupportedBanksResponse * SOAP_FMAC2 soap_instantiate_paylid__getSupportedBanksResponse(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_paylid__getSupportedBanksResponse(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__getTrxStatus
|
||||
#define SOAP_TYPE_paylid_paylid__getTrxStatus (36)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_paylid__getTrxStatus(struct soap*, struct paylid__getTrxStatus *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_paylid__getTrxStatus(struct soap*, const struct paylid__getTrxStatus *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_paylid__getTrxStatus(struct soap*, const char*, int, const struct paylid__getTrxStatus *, const char*);
|
||||
SOAP_FMAC3 struct paylid__getTrxStatus * SOAP_FMAC4 soap_in_paylid__getTrxStatus(struct soap*, const char*, struct paylid__getTrxStatus *, const char*);
|
||||
|
||||
#define soap_write_paylid__getTrxStatus(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_paylid__getTrxStatus(soap, data), 0) || paylid::soap_put_paylid__getTrxStatus(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_paylid__getTrxStatus(struct soap*, const struct paylid__getTrxStatus *, const char*, const char*);
|
||||
|
||||
#define soap_read_paylid__getTrxStatus(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_paylid__getTrxStatus(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct paylid__getTrxStatus * SOAP_FMAC4 soap_get_paylid__getTrxStatus(struct soap*, struct paylid__getTrxStatus *, const char*, const char*);
|
||||
|
||||
#define soap_new_paylid__getTrxStatus(soap, n) soap_instantiate_paylid__getTrxStatus(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_paylid__getTrxStatus(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct paylid__getTrxStatus * SOAP_FMAC2 soap_instantiate_paylid__getTrxStatus(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_paylid__getTrxStatus(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__getTrxStatusResponse
|
||||
#define SOAP_TYPE_paylid_paylid__getTrxStatusResponse (33)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_paylid__getTrxStatusResponse(struct soap*, struct paylid__getTrxStatusResponse *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_paylid__getTrxStatusResponse(struct soap*, const struct paylid__getTrxStatusResponse *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_paylid__getTrxStatusResponse(struct soap*, const char*, int, const struct paylid__getTrxStatusResponse *, const char*);
|
||||
SOAP_FMAC3 struct paylid__getTrxStatusResponse * SOAP_FMAC4 soap_in_paylid__getTrxStatusResponse(struct soap*, const char*, struct paylid__getTrxStatusResponse *, const char*);
|
||||
|
||||
#define soap_write_paylid__getTrxStatusResponse(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_paylid__getTrxStatusResponse(soap, data), 0) || paylid::soap_put_paylid__getTrxStatusResponse(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_paylid__getTrxStatusResponse(struct soap*, const struct paylid__getTrxStatusResponse *, const char*, const char*);
|
||||
|
||||
#define soap_read_paylid__getTrxStatusResponse(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_paylid__getTrxStatusResponse(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct paylid__getTrxStatusResponse * SOAP_FMAC4 soap_get_paylid__getTrxStatusResponse(struct soap*, struct paylid__getTrxStatusResponse *, const char*, const char*);
|
||||
|
||||
#define soap_new_paylid__getTrxStatusResponse(soap, n) soap_instantiate_paylid__getTrxStatusResponse(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_paylid__getTrxStatusResponse(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct paylid__getTrxStatusResponse * SOAP_FMAC2 soap_instantiate_paylid__getTrxStatusResponse(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_paylid__getTrxStatusResponse(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__getAccount
|
||||
#define SOAP_TYPE_paylid_paylid__getAccount (32)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_paylid__getAccount(struct soap*, struct paylid__getAccount *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_paylid__getAccount(struct soap*, const struct paylid__getAccount *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_paylid__getAccount(struct soap*, const char*, int, const struct paylid__getAccount *, const char*);
|
||||
SOAP_FMAC3 struct paylid__getAccount * SOAP_FMAC4 soap_in_paylid__getAccount(struct soap*, const char*, struct paylid__getAccount *, const char*);
|
||||
|
||||
#define soap_write_paylid__getAccount(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_paylid__getAccount(soap, data), 0) || paylid::soap_put_paylid__getAccount(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_paylid__getAccount(struct soap*, const struct paylid__getAccount *, const char*, const char*);
|
||||
|
||||
#define soap_read_paylid__getAccount(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_paylid__getAccount(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct paylid__getAccount * SOAP_FMAC4 soap_get_paylid__getAccount(struct soap*, struct paylid__getAccount *, const char*, const char*);
|
||||
|
||||
#define soap_new_paylid__getAccount(soap, n) soap_instantiate_paylid__getAccount(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_paylid__getAccount(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct paylid__getAccount * SOAP_FMAC2 soap_instantiate_paylid__getAccount(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_paylid__getAccount(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__getAccountResponse
|
||||
#define SOAP_TYPE_paylid_paylid__getAccountResponse (29)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_paylid__getAccountResponse(struct soap*, struct paylid__getAccountResponse *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_paylid__getAccountResponse(struct soap*, const struct paylid__getAccountResponse *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_paylid__getAccountResponse(struct soap*, const char*, int, const struct paylid__getAccountResponse *, const char*);
|
||||
SOAP_FMAC3 struct paylid__getAccountResponse * SOAP_FMAC4 soap_in_paylid__getAccountResponse(struct soap*, const char*, struct paylid__getAccountResponse *, const char*);
|
||||
|
||||
#define soap_write_paylid__getAccountResponse(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_paylid__getAccountResponse(soap, data), 0) || paylid::soap_put_paylid__getAccountResponse(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_paylid__getAccountResponse(struct soap*, const struct paylid__getAccountResponse *, const char*, const char*);
|
||||
|
||||
#define soap_read_paylid__getAccountResponse(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_paylid__getAccountResponse(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct paylid__getAccountResponse * SOAP_FMAC4 soap_get_paylid__getAccountResponse(struct soap*, struct paylid__getAccountResponse *, const char*, const char*);
|
||||
|
||||
#define soap_new_paylid__getAccountResponse(soap, n) soap_instantiate_paylid__getAccountResponse(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_paylid__getAccountResponse(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct paylid__getAccountResponse * SOAP_FMAC2 soap_instantiate_paylid__getAccountResponse(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_paylid__getAccountResponse(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__currentXrate
|
||||
#define SOAP_TYPE_paylid_paylid__currentXrate (28)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_paylid__currentXrate(struct soap*, struct paylid__currentXrate *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_paylid__currentXrate(struct soap*, const struct paylid__currentXrate *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_paylid__currentXrate(struct soap*, const char*, int, const struct paylid__currentXrate *, const char*);
|
||||
SOAP_FMAC3 struct paylid__currentXrate * SOAP_FMAC4 soap_in_paylid__currentXrate(struct soap*, const char*, struct paylid__currentXrate *, const char*);
|
||||
|
||||
#define soap_write_paylid__currentXrate(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_paylid__currentXrate(soap, data), 0) || paylid::soap_put_paylid__currentXrate(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_paylid__currentXrate(struct soap*, const struct paylid__currentXrate *, const char*, const char*);
|
||||
|
||||
#define soap_read_paylid__currentXrate(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_paylid__currentXrate(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct paylid__currentXrate * SOAP_FMAC4 soap_get_paylid__currentXrate(struct soap*, struct paylid__currentXrate *, const char*, const char*);
|
||||
|
||||
#define soap_new_paylid__currentXrate(soap, n) soap_instantiate_paylid__currentXrate(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_paylid__currentXrate(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct paylid__currentXrate * SOAP_FMAC2 soap_instantiate_paylid__currentXrate(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_paylid__currentXrate(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__currentXrateResponse
|
||||
#define SOAP_TYPE_paylid_paylid__currentXrateResponse (25)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_paylid__currentXrateResponse(struct soap*, struct paylid__currentXrateResponse *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_paylid__currentXrateResponse(struct soap*, const struct paylid__currentXrateResponse *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_paylid__currentXrateResponse(struct soap*, const char*, int, const struct paylid__currentXrateResponse *, const char*);
|
||||
SOAP_FMAC3 struct paylid__currentXrateResponse * SOAP_FMAC4 soap_in_paylid__currentXrateResponse(struct soap*, const char*, struct paylid__currentXrateResponse *, const char*);
|
||||
|
||||
#define soap_write_paylid__currentXrateResponse(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_paylid__currentXrateResponse(soap, data), 0) || paylid::soap_put_paylid__currentXrateResponse(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_paylid__currentXrateResponse(struct soap*, const struct paylid__currentXrateResponse *, const char*, const char*);
|
||||
|
||||
#define soap_read_paylid__currentXrateResponse(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_paylid__currentXrateResponse(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct paylid__currentXrateResponse * SOAP_FMAC4 soap_get_paylid__currentXrateResponse(struct soap*, struct paylid__currentXrateResponse *, const char*, const char*);
|
||||
|
||||
#define soap_new_paylid__currentXrateResponse(soap, n) soap_instantiate_paylid__currentXrateResponse(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_paylid__currentXrateResponse(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct paylid__currentXrateResponse * SOAP_FMAC2 soap_instantiate_paylid__currentXrateResponse(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_paylid__currentXrateResponse(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__directAirTimeTopUp
|
||||
#define SOAP_TYPE_paylid_paylid__directAirTimeTopUp (24)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_paylid__directAirTimeTopUp(struct soap*, struct paylid__directAirTimeTopUp *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_paylid__directAirTimeTopUp(struct soap*, const struct paylid__directAirTimeTopUp *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_paylid__directAirTimeTopUp(struct soap*, const char*, int, const struct paylid__directAirTimeTopUp *, const char*);
|
||||
SOAP_FMAC3 struct paylid__directAirTimeTopUp * SOAP_FMAC4 soap_in_paylid__directAirTimeTopUp(struct soap*, const char*, struct paylid__directAirTimeTopUp *, const char*);
|
||||
|
||||
#define soap_write_paylid__directAirTimeTopUp(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_paylid__directAirTimeTopUp(soap, data), 0) || paylid::soap_put_paylid__directAirTimeTopUp(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_paylid__directAirTimeTopUp(struct soap*, const struct paylid__directAirTimeTopUp *, const char*, const char*);
|
||||
|
||||
#define soap_read_paylid__directAirTimeTopUp(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_paylid__directAirTimeTopUp(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct paylid__directAirTimeTopUp * SOAP_FMAC4 soap_get_paylid__directAirTimeTopUp(struct soap*, struct paylid__directAirTimeTopUp *, const char*, const char*);
|
||||
|
||||
#define soap_new_paylid__directAirTimeTopUp(soap, n) soap_instantiate_paylid__directAirTimeTopUp(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_paylid__directAirTimeTopUp(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct paylid__directAirTimeTopUp * SOAP_FMAC2 soap_instantiate_paylid__directAirTimeTopUp(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_paylid__directAirTimeTopUp(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__directAirTimeTopUpResponse
|
||||
#define SOAP_TYPE_paylid_paylid__directAirTimeTopUpResponse (21)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_paylid__directAirTimeTopUpResponse(struct soap*, struct paylid__directAirTimeTopUpResponse *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_paylid__directAirTimeTopUpResponse(struct soap*, const struct paylid__directAirTimeTopUpResponse *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_paylid__directAirTimeTopUpResponse(struct soap*, const char*, int, const struct paylid__directAirTimeTopUpResponse *, const char*);
|
||||
SOAP_FMAC3 struct paylid__directAirTimeTopUpResponse * SOAP_FMAC4 soap_in_paylid__directAirTimeTopUpResponse(struct soap*, const char*, struct paylid__directAirTimeTopUpResponse *, const char*);
|
||||
|
||||
#define soap_write_paylid__directAirTimeTopUpResponse(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_paylid__directAirTimeTopUpResponse(soap, data), 0) || paylid::soap_put_paylid__directAirTimeTopUpResponse(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_paylid__directAirTimeTopUpResponse(struct soap*, const struct paylid__directAirTimeTopUpResponse *, const char*, const char*);
|
||||
|
||||
#define soap_read_paylid__directAirTimeTopUpResponse(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_paylid__directAirTimeTopUpResponse(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct paylid__directAirTimeTopUpResponse * SOAP_FMAC4 soap_get_paylid__directAirTimeTopUpResponse(struct soap*, struct paylid__directAirTimeTopUpResponse *, const char*, const char*);
|
||||
|
||||
#define soap_new_paylid__directAirTimeTopUpResponse(soap, n) soap_instantiate_paylid__directAirTimeTopUpResponse(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_paylid__directAirTimeTopUpResponse(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct paylid__directAirTimeTopUpResponse * SOAP_FMAC2 soap_instantiate_paylid__directAirTimeTopUpResponse(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_paylid__directAirTimeTopUpResponse(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__checkTransferStatus
|
||||
#define SOAP_TYPE_paylid_paylid__checkTransferStatus (20)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_paylid__checkTransferStatus(struct soap*, struct paylid__checkTransferStatus *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_paylid__checkTransferStatus(struct soap*, const struct paylid__checkTransferStatus *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_paylid__checkTransferStatus(struct soap*, const char*, int, const struct paylid__checkTransferStatus *, const char*);
|
||||
SOAP_FMAC3 struct paylid__checkTransferStatus * SOAP_FMAC4 soap_in_paylid__checkTransferStatus(struct soap*, const char*, struct paylid__checkTransferStatus *, const char*);
|
||||
|
||||
#define soap_write_paylid__checkTransferStatus(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_paylid__checkTransferStatus(soap, data), 0) || paylid::soap_put_paylid__checkTransferStatus(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_paylid__checkTransferStatus(struct soap*, const struct paylid__checkTransferStatus *, const char*, const char*);
|
||||
|
||||
#define soap_read_paylid__checkTransferStatus(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_paylid__checkTransferStatus(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct paylid__checkTransferStatus * SOAP_FMAC4 soap_get_paylid__checkTransferStatus(struct soap*, struct paylid__checkTransferStatus *, const char*, const char*);
|
||||
|
||||
#define soap_new_paylid__checkTransferStatus(soap, n) soap_instantiate_paylid__checkTransferStatus(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_paylid__checkTransferStatus(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct paylid__checkTransferStatus * SOAP_FMAC2 soap_instantiate_paylid__checkTransferStatus(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_paylid__checkTransferStatus(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__checkTransferStatusResponse
|
||||
#define SOAP_TYPE_paylid_paylid__checkTransferStatusResponse (17)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_paylid__checkTransferStatusResponse(struct soap*, struct paylid__checkTransferStatusResponse *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_paylid__checkTransferStatusResponse(struct soap*, const struct paylid__checkTransferStatusResponse *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_paylid__checkTransferStatusResponse(struct soap*, const char*, int, const struct paylid__checkTransferStatusResponse *, const char*);
|
||||
SOAP_FMAC3 struct paylid__checkTransferStatusResponse * SOAP_FMAC4 soap_in_paylid__checkTransferStatusResponse(struct soap*, const char*, struct paylid__checkTransferStatusResponse *, const char*);
|
||||
|
||||
#define soap_write_paylid__checkTransferStatusResponse(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_paylid__checkTransferStatusResponse(soap, data), 0) || paylid::soap_put_paylid__checkTransferStatusResponse(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_paylid__checkTransferStatusResponse(struct soap*, const struct paylid__checkTransferStatusResponse *, const char*, const char*);
|
||||
|
||||
#define soap_read_paylid__checkTransferStatusResponse(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_paylid__checkTransferStatusResponse(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct paylid__checkTransferStatusResponse * SOAP_FMAC4 soap_get_paylid__checkTransferStatusResponse(struct soap*, struct paylid__checkTransferStatusResponse *, const char*, const char*);
|
||||
|
||||
#define soap_new_paylid__checkTransferStatusResponse(soap, n) soap_instantiate_paylid__checkTransferStatusResponse(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_paylid__checkTransferStatusResponse(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct paylid__checkTransferStatusResponse * SOAP_FMAC2 soap_instantiate_paylid__checkTransferStatusResponse(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_paylid__checkTransferStatusResponse(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__transferFund
|
||||
#define SOAP_TYPE_paylid_paylid__transferFund (16)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_paylid__transferFund(struct soap*, struct paylid__transferFund *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_paylid__transferFund(struct soap*, const struct paylid__transferFund *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_paylid__transferFund(struct soap*, const char*, int, const struct paylid__transferFund *, const char*);
|
||||
SOAP_FMAC3 struct paylid__transferFund * SOAP_FMAC4 soap_in_paylid__transferFund(struct soap*, const char*, struct paylid__transferFund *, const char*);
|
||||
|
||||
#define soap_write_paylid__transferFund(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_paylid__transferFund(soap, data), 0) || paylid::soap_put_paylid__transferFund(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_paylid__transferFund(struct soap*, const struct paylid__transferFund *, const char*, const char*);
|
||||
|
||||
#define soap_read_paylid__transferFund(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_paylid__transferFund(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct paylid__transferFund * SOAP_FMAC4 soap_get_paylid__transferFund(struct soap*, struct paylid__transferFund *, const char*, const char*);
|
||||
|
||||
#define soap_new_paylid__transferFund(soap, n) soap_instantiate_paylid__transferFund(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_paylid__transferFund(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct paylid__transferFund * SOAP_FMAC2 soap_instantiate_paylid__transferFund(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_paylid__transferFund(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__transferFundResponse
|
||||
#define SOAP_TYPE_paylid_paylid__transferFundResponse (13)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_paylid__transferFundResponse(struct soap*, struct paylid__transferFundResponse *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_paylid__transferFundResponse(struct soap*, const struct paylid__transferFundResponse *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_paylid__transferFundResponse(struct soap*, const char*, int, const struct paylid__transferFundResponse *, const char*);
|
||||
SOAP_FMAC3 struct paylid__transferFundResponse * SOAP_FMAC4 soap_in_paylid__transferFundResponse(struct soap*, const char*, struct paylid__transferFundResponse *, const char*);
|
||||
|
||||
#define soap_write_paylid__transferFundResponse(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_paylid__transferFundResponse(soap, data), 0) || paylid::soap_put_paylid__transferFundResponse(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_paylid__transferFundResponse(struct soap*, const struct paylid__transferFundResponse *, const char*, const char*);
|
||||
|
||||
#define soap_read_paylid__transferFundResponse(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_paylid__transferFundResponse(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct paylid__transferFundResponse * SOAP_FMAC4 soap_get_paylid__transferFundResponse(struct soap*, struct paylid__transferFundResponse *, const char*, const char*);
|
||||
|
||||
#define soap_new_paylid__transferFundResponse(soap, n) soap_instantiate_paylid__transferFundResponse(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_paylid__transferFundResponse(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct paylid__transferFundResponse * SOAP_FMAC2 soap_instantiate_paylid__transferFundResponse(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_paylid__transferFundResponse(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__getAccountBalance
|
||||
#define SOAP_TYPE_paylid_paylid__getAccountBalance (12)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_paylid__getAccountBalance(struct soap*, struct paylid__getAccountBalance *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_paylid__getAccountBalance(struct soap*, const struct paylid__getAccountBalance *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_paylid__getAccountBalance(struct soap*, const char*, int, const struct paylid__getAccountBalance *, const char*);
|
||||
SOAP_FMAC3 struct paylid__getAccountBalance * SOAP_FMAC4 soap_in_paylid__getAccountBalance(struct soap*, const char*, struct paylid__getAccountBalance *, const char*);
|
||||
|
||||
#define soap_write_paylid__getAccountBalance(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_paylid__getAccountBalance(soap, data), 0) || paylid::soap_put_paylid__getAccountBalance(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_paylid__getAccountBalance(struct soap*, const struct paylid__getAccountBalance *, const char*, const char*);
|
||||
|
||||
#define soap_read_paylid__getAccountBalance(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_paylid__getAccountBalance(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct paylid__getAccountBalance * SOAP_FMAC4 soap_get_paylid__getAccountBalance(struct soap*, struct paylid__getAccountBalance *, const char*, const char*);
|
||||
|
||||
#define soap_new_paylid__getAccountBalance(soap, n) soap_instantiate_paylid__getAccountBalance(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_paylid__getAccountBalance(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct paylid__getAccountBalance * SOAP_FMAC2 soap_instantiate_paylid__getAccountBalance(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_paylid__getAccountBalance(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__getAccountBalanceResponse
|
||||
#define SOAP_TYPE_paylid_paylid__getAccountBalanceResponse (8)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_paylid__getAccountBalanceResponse(struct soap*, struct paylid__getAccountBalanceResponse *);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_paylid__getAccountBalanceResponse(struct soap*, const struct paylid__getAccountBalanceResponse *);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_paylid__getAccountBalanceResponse(struct soap*, const char*, int, const struct paylid__getAccountBalanceResponse *, const char*);
|
||||
SOAP_FMAC3 struct paylid__getAccountBalanceResponse * SOAP_FMAC4 soap_in_paylid__getAccountBalanceResponse(struct soap*, const char*, struct paylid__getAccountBalanceResponse *, const char*);
|
||||
|
||||
#define soap_write_paylid__getAccountBalanceResponse(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_paylid__getAccountBalanceResponse(soap, data), 0) || paylid::soap_put_paylid__getAccountBalanceResponse(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_paylid__getAccountBalanceResponse(struct soap*, const struct paylid__getAccountBalanceResponse *, const char*, const char*);
|
||||
|
||||
#define soap_read_paylid__getAccountBalanceResponse(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_paylid__getAccountBalanceResponse(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct paylid__getAccountBalanceResponse * SOAP_FMAC4 soap_get_paylid__getAccountBalanceResponse(struct soap*, struct paylid__getAccountBalanceResponse *, const char*, const char*);
|
||||
|
||||
#define soap_new_paylid__getAccountBalanceResponse(soap, n) soap_instantiate_paylid__getAccountBalanceResponse(soap, n, NULL, NULL, NULL)
|
||||
|
||||
|
||||
#define soap_delete_paylid__getAccountBalanceResponse(soap, p) soap_delete(soap, p)
|
||||
|
||||
SOAP_FMAC1 struct paylid__getAccountBalanceResponse * SOAP_FMAC2 soap_instantiate_paylid__getAccountBalanceResponse(struct soap*, int, const char*, const char*, size_t*);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_copy_paylid__getAccountBalanceResponse(struct soap*, int, int, void*, size_t, const void*, size_t);
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_PointerToSOAP_ENV__Reason
|
||||
#define SOAP_TYPE_paylid_PointerToSOAP_ENV__Reason (50)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *const*);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Reason(struct soap*, const char *, int, struct SOAP_ENV__Reason *const*, const char *);
|
||||
SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Reason(struct soap*, const char*, struct SOAP_ENV__Reason **, const char*);
|
||||
|
||||
#define soap_write_PointerToSOAP_ENV__Reason(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_PointerToSOAP_ENV__Reason(soap, data), 0) || paylid::soap_put_PointerToSOAP_ENV__Reason(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *const*, const char*, const char*);
|
||||
|
||||
#define soap_read_PointerToSOAP_ENV__Reason(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_PointerToSOAP_ENV__Reason(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason **, const char*, const char*);
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_PointerToSOAP_ENV__Detail
|
||||
#define SOAP_TYPE_paylid_PointerToSOAP_ENV__Detail (49)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *const*);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Detail(struct soap*, const char *, int, struct SOAP_ENV__Detail *const*, const char *);
|
||||
SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Detail(struct soap*, const char*, struct SOAP_ENV__Detail **, const char*);
|
||||
|
||||
#define soap_write_PointerToSOAP_ENV__Detail(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_PointerToSOAP_ENV__Detail(soap, data), 0) || paylid::soap_put_PointerToSOAP_ENV__Detail(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *const*, const char*, const char*);
|
||||
|
||||
#define soap_read_PointerToSOAP_ENV__Detail(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_PointerToSOAP_ENV__Detail(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail **, const char*, const char*);
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef WITH_NOGLOBAL
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_PointerToSOAP_ENV__Code
|
||||
#define SOAP_TYPE_paylid_PointerToSOAP_ENV__Code (43)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *const*);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Code(struct soap*, const char *, int, struct SOAP_ENV__Code *const*, const char *);
|
||||
SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Code(struct soap*, const char*, struct SOAP_ENV__Code **, const char*);
|
||||
|
||||
#define soap_write_PointerToSOAP_ENV__Code(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_PointerToSOAP_ENV__Code(soap, data), 0) || paylid::soap_put_PointerToSOAP_ENV__Code(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *const*, const char*, const char*);
|
||||
|
||||
#define soap_read_PointerToSOAP_ENV__Code(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_PointerToSOAP_ENV__Code(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code **, const char*, const char*);
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid__QName
|
||||
#define SOAP_TYPE_paylid__QName (5)
|
||||
#endif
|
||||
|
||||
#define soap_default__QName(soap, a) soap_default_string(soap, a)
|
||||
|
||||
|
||||
#define soap_serialize__QName(soap, a) soap_serialize_string(soap, a)
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out__QName(struct soap*, const char*, int, char*const*, const char*);
|
||||
SOAP_FMAC3 char * * SOAP_FMAC4 soap_in__QName(struct soap*, const char*, char **, const char*);
|
||||
|
||||
#define soap_write__QName(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize__QName(soap, data), 0) || paylid::soap_put__QName(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put__QName(struct soap*, char *const*, const char*, const char*);
|
||||
|
||||
#define soap_read__QName(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get__QName(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 char ** SOAP_FMAC4 soap_get__QName(struct soap*, char **, const char*, const char*);
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_string
|
||||
#define SOAP_TYPE_paylid_string (4)
|
||||
#endif
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_default_string(struct soap*, char **);
|
||||
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_string(struct soap*, char *const*);
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_out_string(struct soap*, const char*, int, char*const*, const char*);
|
||||
SOAP_FMAC3 char * * SOAP_FMAC4 soap_in_string(struct soap*, const char*, char **, const char*);
|
||||
|
||||
#define soap_write_string(soap, data) ( soap_begin_send(soap) || (paylid::soap_serialize_string(soap, data), 0) || paylid::soap_put_string(soap, data, NULL, NULL) || soap_end_send(soap) )
|
||||
|
||||
SOAP_FMAC3 int SOAP_FMAC4 soap_put_string(struct soap*, char *const*, const char*, const char*);
|
||||
|
||||
#define soap_read_string(soap, data) ( soap_begin_recv(soap) || !paylid::soap_get_string(soap, data, NULL, NULL) || soap_end_recv(soap) )
|
||||
|
||||
SOAP_FMAC3 char ** SOAP_FMAC4 soap_get_string(struct soap*, char **, const char*, const char*);
|
||||
|
||||
} // namespace paylid
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
/* End of paylidH.h */
|
||||
@@ -0,0 +1,334 @@
|
||||
/* paylidStub.h
|
||||
Generated by gSOAP 2.7.16 from PaylidService.h
|
||||
Copyright(C) 2000-2010, Robert van Engelen, Genivia Inc. All Rights Reserved.
|
||||
This part of the software is released under one of the following licenses:
|
||||
GPL, the gSOAP public license, or Genivia's license for commercial use.
|
||||
*/
|
||||
|
||||
#ifndef paylidStub_H
|
||||
#define paylidStub_H
|
||||
#include <vector>
|
||||
#define SOAP_NAMESPACE_OF_paylid "urn:paylidwsdl"
|
||||
#ifndef WITH_NONAMESPACES
|
||||
#define WITH_NONAMESPACES
|
||||
#endif
|
||||
#ifndef WITH_NOGLOBAL
|
||||
#define WITH_NOGLOBAL
|
||||
#endif
|
||||
#include "stdsoap2.h"
|
||||
|
||||
namespace paylid {
|
||||
|
||||
/******************************************************************************\
|
||||
* *
|
||||
* Enumerations *
|
||||
* *
|
||||
\******************************************************************************/
|
||||
|
||||
|
||||
/******************************************************************************\
|
||||
* *
|
||||
* Types with Custom Serializers *
|
||||
* *
|
||||
\******************************************************************************/
|
||||
|
||||
|
||||
/******************************************************************************\
|
||||
* *
|
||||
* Classes and Structs *
|
||||
* *
|
||||
\******************************************************************************/
|
||||
|
||||
|
||||
#if 0 /* volatile type: do not redeclare here */
|
||||
|
||||
#endif
|
||||
|
||||
#if 0 /* volatile type: do not redeclare here */
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__getAccountBalanceResponse
|
||||
#define SOAP_TYPE_paylid_paylid__getAccountBalanceResponse (8)
|
||||
/* paylid:getAccountBalanceResponse */
|
||||
struct paylid__getAccountBalanceResponse
|
||||
{
|
||||
public:
|
||||
std::string Code; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:string */
|
||||
std::string Data; /* required element of type xsd:string */
|
||||
std::string Hmac; /* required element of type xsd:string */
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__getAccountBalance
|
||||
#define SOAP_TYPE_paylid_paylid__getAccountBalance (12)
|
||||
/* paylid:getAccountBalance */
|
||||
struct paylid__getAccountBalance
|
||||
{
|
||||
public:
|
||||
std::string terminalID; /* required element of type xsd:string */
|
||||
std::string hmac; /* required element of type xsd:string */
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__transferFundResponse
|
||||
#define SOAP_TYPE_paylid_paylid__transferFundResponse (13)
|
||||
/* paylid:transferFundResponse */
|
||||
struct paylid__transferFundResponse
|
||||
{
|
||||
public:
|
||||
std::string Code; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:string */
|
||||
std::string Data; /* required element of type xsd:string */
|
||||
std::string Hmac; /* required element of type xsd:string */
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__transferFund
|
||||
#define SOAP_TYPE_paylid_paylid__transferFund (16)
|
||||
/* paylid:transferFund */
|
||||
struct paylid__transferFund
|
||||
{
|
||||
public:
|
||||
std::string terminalID; /* required element of type xsd:string */
|
||||
std::string toDestination; /* required element of type xsd:string */
|
||||
std::string hmac; /* required element of type xsd:string */
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__checkTransferStatusResponse
|
||||
#define SOAP_TYPE_paylid_paylid__checkTransferStatusResponse (17)
|
||||
/* paylid:checkTransferStatusResponse */
|
||||
struct paylid__checkTransferStatusResponse
|
||||
{
|
||||
public:
|
||||
std::string Code; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:string */
|
||||
std::string Data; /* required element of type xsd:string */
|
||||
std::string Hmac; /* required element of type xsd:string */
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__checkTransferStatus
|
||||
#define SOAP_TYPE_paylid_paylid__checkTransferStatus (20)
|
||||
/* paylid:checkTransferStatus */
|
||||
struct paylid__checkTransferStatus
|
||||
{
|
||||
public:
|
||||
std::string terminalID; /* required element of type xsd:string */
|
||||
std::string transactionRef; /* required element of type xsd:string */
|
||||
std::string hmac; /* required element of type xsd:string */
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__directAirTimeTopUpResponse
|
||||
#define SOAP_TYPE_paylid_paylid__directAirTimeTopUpResponse (21)
|
||||
/* paylid:directAirTimeTopUpResponse */
|
||||
struct paylid__directAirTimeTopUpResponse
|
||||
{
|
||||
public:
|
||||
std::string Code; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:string */
|
||||
std::string Data; /* required element of type xsd:string */
|
||||
std::string Hmac; /* required element of type xsd:string */
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__directAirTimeTopUp
|
||||
#define SOAP_TYPE_paylid_paylid__directAirTimeTopUp (24)
|
||||
/* paylid:directAirTimeTopUp */
|
||||
struct paylid__directAirTimeTopUp
|
||||
{
|
||||
public:
|
||||
std::string terminalID; /* required element of type xsd:string */
|
||||
std::string topupData; /* required element of type xsd:string */
|
||||
std::string hmac; /* required element of type xsd:string */
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__currentXrateResponse
|
||||
#define SOAP_TYPE_paylid_paylid__currentXrateResponse (25)
|
||||
/* paylid:currentXrateResponse */
|
||||
struct paylid__currentXrateResponse
|
||||
{
|
||||
public:
|
||||
std::string Code; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:string */
|
||||
std::string Data; /* required element of type xsd:string */
|
||||
std::string Hmac; /* required element of type xsd:string */
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__currentXrate
|
||||
#define SOAP_TYPE_paylid_paylid__currentXrate (28)
|
||||
/* paylid:currentXrate */
|
||||
struct paylid__currentXrate
|
||||
{
|
||||
public:
|
||||
std::string terminalID; /* required element of type xsd:string */
|
||||
std::string topupData; /* required element of type xsd:string */
|
||||
std::string hmac; /* required element of type xsd:string */
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__getAccountResponse
|
||||
#define SOAP_TYPE_paylid_paylid__getAccountResponse (29)
|
||||
/* paylid:getAccountResponse */
|
||||
struct paylid__getAccountResponse
|
||||
{
|
||||
public:
|
||||
std::string Code; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:string */
|
||||
std::string Data; /* required element of type xsd:string */
|
||||
std::string Hmac; /* required element of type xsd:string */
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__getAccount
|
||||
#define SOAP_TYPE_paylid_paylid__getAccount (32)
|
||||
/* paylid:getAccount */
|
||||
struct paylid__getAccount
|
||||
{
|
||||
public:
|
||||
std::string terminalID; /* required element of type xsd:string */
|
||||
std::string topupData; /* required element of type xsd:string */
|
||||
std::string hmac; /* required element of type xsd:string */
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__getTrxStatusResponse
|
||||
#define SOAP_TYPE_paylid_paylid__getTrxStatusResponse (33)
|
||||
/* paylid:getTrxStatusResponse */
|
||||
struct paylid__getTrxStatusResponse
|
||||
{
|
||||
public:
|
||||
std::string Code; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:string */
|
||||
std::string Data; /* required element of type xsd:string */
|
||||
std::string Hmac; /* required element of type xsd:string */
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__getTrxStatus
|
||||
#define SOAP_TYPE_paylid_paylid__getTrxStatus (36)
|
||||
/* paylid:getTrxStatus */
|
||||
struct paylid__getTrxStatus
|
||||
{
|
||||
public:
|
||||
std::string terminalID; /* required element of type xsd:string */
|
||||
std::string topupData; /* required element of type xsd:string */
|
||||
std::string hmac; /* required element of type xsd:string */
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__getSupportedBanksResponse
|
||||
#define SOAP_TYPE_paylid_paylid__getSupportedBanksResponse (37)
|
||||
/* paylid:getSupportedBanksResponse */
|
||||
struct paylid__getSupportedBanksResponse
|
||||
{
|
||||
public:
|
||||
std::string Code; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* required element of type xsd:string */
|
||||
std::string Data; /* required element of type xsd:string */
|
||||
std::string Hmac; /* required element of type xsd:string */
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_paylid__getSupportedBanks
|
||||
#define SOAP_TYPE_paylid_paylid__getSupportedBanks (40)
|
||||
/* paylid:getSupportedBanks */
|
||||
struct paylid__getSupportedBanks
|
||||
{
|
||||
public:
|
||||
std::string terminalID; /* required element of type xsd:string */
|
||||
std::string topupData; /* required element of type xsd:string */
|
||||
std::string hmac; /* required element of type xsd:string */
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_SOAP_ENV__Header
|
||||
#define SOAP_TYPE_paylid_SOAP_ENV__Header (41)
|
||||
/* SOAP Header: */
|
||||
struct SOAP_ENV__Header
|
||||
{
|
||||
#ifdef WITH_NOEMPTYSTRUCT
|
||||
private:
|
||||
char dummy; /* dummy member to enable compilation */
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_SOAP_ENV__Code
|
||||
#define SOAP_TYPE_paylid_SOAP_ENV__Code (42)
|
||||
/* SOAP Fault Code: */
|
||||
struct SOAP_ENV__Code
|
||||
{
|
||||
public:
|
||||
char *SOAP_ENV__Value; /* optional element of type xsd:QName */
|
||||
struct SOAP_ENV__Code *SOAP_ENV__Subcode; /* optional element of type SOAP-ENV:Code */
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_SOAP_ENV__Detail
|
||||
#define SOAP_TYPE_paylid_SOAP_ENV__Detail (44)
|
||||
/* SOAP-ENV:Detail */
|
||||
struct SOAP_ENV__Detail
|
||||
{
|
||||
public:
|
||||
int __type; /* any type of element <fault> (defined below) */
|
||||
void *fault; /* transient */
|
||||
char *__any;
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_SOAP_ENV__Reason
|
||||
#define SOAP_TYPE_paylid_SOAP_ENV__Reason (47)
|
||||
/* SOAP-ENV:Reason */
|
||||
struct SOAP_ENV__Reason
|
||||
{
|
||||
public:
|
||||
char *SOAP_ENV__Text; /* optional element of type xsd:string */
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid_SOAP_ENV__Fault
|
||||
#define SOAP_TYPE_paylid_SOAP_ENV__Fault (48)
|
||||
/* SOAP Fault: */
|
||||
struct SOAP_ENV__Fault
|
||||
{
|
||||
public:
|
||||
char *faultcode; /* optional element of type xsd:QName */
|
||||
char *faultstring; /* optional element of type xsd:string */
|
||||
char *faultactor; /* optional element of type xsd:string */
|
||||
struct SOAP_ENV__Detail *detail; /* optional element of type SOAP-ENV:Detail */
|
||||
struct SOAP_ENV__Code *SOAP_ENV__Code; /* optional element of type SOAP-ENV:Code */
|
||||
struct SOAP_ENV__Reason *SOAP_ENV__Reason; /* optional element of type SOAP-ENV:Reason */
|
||||
char *SOAP_ENV__Node; /* optional element of type xsd:string */
|
||||
char *SOAP_ENV__Role; /* optional element of type xsd:string */
|
||||
struct SOAP_ENV__Detail *SOAP_ENV__Detail; /* optional element of type SOAP-ENV:Detail */
|
||||
};
|
||||
#endif
|
||||
|
||||
/******************************************************************************\
|
||||
* *
|
||||
* Typedefs *
|
||||
* *
|
||||
\******************************************************************************/
|
||||
|
||||
#ifndef SOAP_TYPE_paylid__QName
|
||||
#define SOAP_TYPE_paylid__QName (5)
|
||||
typedef char *_QName;
|
||||
#endif
|
||||
|
||||
#ifndef SOAP_TYPE_paylid__XML
|
||||
#define SOAP_TYPE_paylid__XML (6)
|
||||
typedef char *_XML;
|
||||
#endif
|
||||
|
||||
|
||||
/******************************************************************************\
|
||||
* *
|
||||
* Externals *
|
||||
* *
|
||||
\******************************************************************************/
|
||||
|
||||
|
||||
} // namespace paylid
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
/* End of paylidStub.h */
|
||||
@@ -0,0 +1,78 @@
|
||||
/* paylidpaylidwsdlBindingProxy.h
|
||||
Generated by gSOAP 2.7.16 from PaylidService.h
|
||||
Copyright(C) 2000-2010, Robert van Engelen, Genivia Inc. All Rights Reserved.
|
||||
This part of the software is released under one of the following licenses:
|
||||
GPL, the gSOAP public license, or Genivia's license for commercial use.
|
||||
*/
|
||||
|
||||
#ifndef paylidpaylidwsdlBindingProxy_H
|
||||
#define paylidpaylidwsdlBindingProxy_H
|
||||
#include "paylidH.h"
|
||||
|
||||
namespace paylid {
|
||||
|
||||
class SOAP_CMAC paylidwsdlBindingProxy : public soap
|
||||
{ public:
|
||||
/// Endpoint URL of service 'paylidwsdlBindingProxy' (change as needed)
|
||||
const char *soap_endpoint;
|
||||
/// Constructor
|
||||
paylidwsdlBindingProxy();
|
||||
/// Constructor with copy of another engine state
|
||||
paylidwsdlBindingProxy(const struct soap&);
|
||||
/// Constructor with engine input+output mode control
|
||||
paylidwsdlBindingProxy(soap_mode iomode);
|
||||
/// Constructor with engine input and output mode control
|
||||
paylidwsdlBindingProxy(soap_mode imode, soap_mode omode);
|
||||
/// Destructor frees deserialized data
|
||||
virtual ~paylidwsdlBindingProxy();
|
||||
/// Initializer used by constructors
|
||||
virtual void paylidwsdlBindingProxy_init(soap_mode imode, soap_mode omode);
|
||||
/// Delete all deserialized data (uses soap_destroy and soap_end)
|
||||
virtual void destroy();
|
||||
/// Disables and removes SOAP Header from message
|
||||
virtual void soap_noheader();
|
||||
/// Get SOAP Fault structure (NULL when absent)
|
||||
virtual const SOAP_ENV__Fault *soap_fault();
|
||||
/// Get SOAP Fault string (NULL when absent)
|
||||
virtual const char *soap_fault_string();
|
||||
/// Get SOAP Fault detail as string (NULL when absent)
|
||||
virtual const char *soap_fault_detail();
|
||||
/// Force close connection (normally automatic, except for send_X ops)
|
||||
virtual int soap_close_socket();
|
||||
/// Print fault
|
||||
virtual void soap_print_fault(FILE*);
|
||||
#ifndef WITH_LEAN
|
||||
/// Print fault to stream
|
||||
virtual void soap_stream_fault(std::ostream&);
|
||||
/// Put fault into buffer
|
||||
virtual char *soap_sprint_fault(char *buf, size_t len);
|
||||
#endif
|
||||
|
||||
/// Web service operation 'getAccountBalance' (returns error code or SOAP_OK)
|
||||
virtual int getAccountBalance(std::string terminalID, std::string hmac, struct paylid__getAccountBalanceResponse &_param_1);
|
||||
|
||||
/// Web service operation 'transferFund' (returns error code or SOAP_OK)
|
||||
virtual int transferFund(std::string terminalID, std::string toDestination, std::string hmac, struct paylid__transferFundResponse &_param_2);
|
||||
|
||||
/// Web service operation 'checkTransferStatus' (returns error code or SOAP_OK)
|
||||
virtual int checkTransferStatus(std::string terminalID, std::string transactionRef, std::string hmac, struct paylid__checkTransferStatusResponse &_param_3);
|
||||
|
||||
/// Web service operation 'directAirTimeTopUp' (returns error code or SOAP_OK)
|
||||
virtual int directAirTimeTopUp(std::string terminalID, std::string topupData, std::string hmac, struct paylid__directAirTimeTopUpResponse &_param_4);
|
||||
|
||||
/// Web service operation 'currentXrate' (returns error code or SOAP_OK)
|
||||
virtual int currentXrate(std::string terminalID, std::string topupData, std::string hmac, struct paylid__currentXrateResponse &_param_5);
|
||||
|
||||
/// Web service operation 'getAccount' (returns error code or SOAP_OK)
|
||||
virtual int getAccount(std::string terminalID, std::string topupData, std::string hmac, struct paylid__getAccountResponse &_param_6);
|
||||
|
||||
/// Web service operation 'getTrxStatus' (returns error code or SOAP_OK)
|
||||
virtual int getTrxStatus(std::string terminalID, std::string topupData, std::string hmac, struct paylid__getTrxStatusResponse &_param_7);
|
||||
|
||||
/// Web service operation 'getSupportedBanks' (returns error code or SOAP_OK)
|
||||
virtual int getSupportedBanks(std::string terminalID, std::string topupData, std::string hmac, struct paylid__getSupportedBanksResponse &_param_8);
|
||||
};
|
||||
|
||||
} // namespace paylid
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,28 @@
|
||||
#ifndef __PGSQL_H__
|
||||
#define __PGSQL_H__
|
||||
|
||||
#include <libpq-fe.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <string>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int pgsql_db_connect(const char*host,const char*name,const char*user,const char*pass,long port);
|
||||
int pgsql_exec(const char * format, ... );
|
||||
const PGresult* pgsql_query(const char * format, ... );
|
||||
int pgsql_num_rows(const PGresult *res);
|
||||
int pgsql_num_fields(const PGresult *res);
|
||||
map<const char*,const char*> pgsql_fetch_assoc(const PGresult *res, int row);
|
||||
vector<const char*> pgsql_fetch_row(const PGresult *res, int row);
|
||||
void pgsql_close();
|
||||
char* pgsql_uitoa(unsigned n, char *s, int radix);
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
vi:ts=2
|
||||
*/
|
||||
@@ -0,0 +1,41 @@
|
||||
#ifndef __PGSQL_WRAPPER_H__
|
||||
#define __PGSQL_WRAPPER_H__
|
||||
|
||||
#include "exceptions.h"
|
||||
|
||||
enum { DBS_ALL=0, DBS_VALID=1, DBS_STREAM=2 };
|
||||
|
||||
class CEscape;
|
||||
|
||||
#define NEED_ESC CEscape __esc( cmd );
|
||||
#define esc( param ) __esc.Escape( param )
|
||||
|
||||
#define ESCAPE_MAX_VARS 50
|
||||
|
||||
void load_db_record( const char * table, CVars &rec, const char * where, ... );
|
||||
long load_db_record( CVars &rec, const char * query, ... );
|
||||
long insert_db_record( int mode, const char *table, const char *seq, CVars &rec );
|
||||
void update_db_record( int mode, const char * table, CVars &rec, long id, const char * where=NULL, ... ) throw ( bad_parameter );
|
||||
void v_update_db_record( int mode, const char * table, CVars &rec, const char *index, long id, const char * where=NULL, va_list ap=NULL ) throw ( bad_parameter );
|
||||
void update_db_record( int mode, const char * table, CVars &rec, const char *index, long id, const char * where=NULL, ... ) throw ( bad_parameter );
|
||||
long curr_val( const char *seq );
|
||||
|
||||
class CEscape
|
||||
{
|
||||
public:
|
||||
char * New( int sz );
|
||||
CEscape( char * st );
|
||||
~CEscape();
|
||||
char * Escape( const char * param );
|
||||
|
||||
private:
|
||||
char * vars[ESCAPE_MAX_VARS];
|
||||
int n;
|
||||
char * st;
|
||||
char esc[1000];
|
||||
int EscapeLength( const char * par ); // Calculate the required buffer size for escaped par
|
||||
char *EscapeReal( const char * cmd, char * _esc=NULL, int sz=0 ); // Escape a string for SQL server
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#ifndef PHP_COREGRADE_API_H
|
||||
#define PHP_COREGRADE_API_H
|
||||
|
||||
#define PHP_COREGRADE_API_EXTNAME "coregrade_api"
|
||||
#define PHP_COREGRADE_API_EXTVER "0.1"
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
#include "php.h"
|
||||
}
|
||||
|
||||
extern zend_module_entry coregrade_api_module_entry;
|
||||
#define phpext_coregrade_api_ptr &coregrade_api_module_entry;
|
||||
|
||||
#endif /* PHP_COREGRADE_API_H */
|
||||
@@ -0,0 +1 @@
|
||||
#define COREGRADE_API_NS "coregrade_api_oameye"
|
||||
@@ -0,0 +1 @@
|
||||
#define COREGRADE_CONFIG "/home/oameye/coregrade/coregrade/etc/"
|
||||
@@ -0,0 +1 @@
|
||||
#define COREGRADE_LOG "/home/oameye/coregrade/coregrade/logs/coregrade_api.log"
|
||||
@@ -0,0 +1 @@
|
||||
#define FILELOG_MAX_LEVEL 9
|
||||
@@ -0,0 +1 @@
|
||||
#define TMPL_PREFIX "/home/oameye/coregrade/coregrade/email/"
|
||||
@@ -0,0 +1,49 @@
|
||||
|
||||
#ifndef __safestr_lib
|
||||
#define __safestr_lib
|
||||
#include "config.h"
|
||||
|
||||
#define SAFESTRING_COMMON_BUFFER_SIZE 1024
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
char * strsafecpy( char * dest, const char * src, int size );
|
||||
|
||||
char * strnsafecpy( char * dest, const char * src, int n, int size );
|
||||
|
||||
char * strsafecat( char * dest, const char * src, int size );
|
||||
|
||||
char * strcatf( char * dest, int size, const char * fmt, ... );
|
||||
|
||||
char * strnsafecat( char * dest, const char * src, int n, int size );
|
||||
// Append first n characters of src to dest
|
||||
|
||||
char * last_line( char * buf ); // find the last line and return the pointer to its beginning
|
||||
|
||||
char * safestrdup( const char *s );
|
||||
|
||||
char * strreverse( char *s );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
char * toupper( char * s, char * dest=0, int sz=0 );
|
||||
char * tolower( char * s, char * dest=0, int sz=0 );
|
||||
|
||||
char * toupper( const char * s, char * dest, int sz );
|
||||
char * tolower( const char * s, char * dest, int sz );
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
//int GetParam(char * params, char _name[], char value[], int valuelen, char ** end = 0 );
|
||||
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* FIPS 180-2 SHA-224/256/384/512 implementation
|
||||
* Last update: 02/02/2007
|
||||
* Issue date: 04/30/2005
|
||||
*
|
||||
* Copyright (C) 2005, 2007 Olivier Gay <olivier.gay@a3.epfl.ch>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the name of the project nor the names of its contributors
|
||||
* may be used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef SHA2_H
|
||||
#define SHA2_H
|
||||
|
||||
#define SHA224_DIGEST_SIZE ( 224 / 8)
|
||||
#define SHA256_DIGEST_SIZE ( 256 / 8)
|
||||
#define SHA384_DIGEST_SIZE ( 384 / 8)
|
||||
#define SHA512_DIGEST_SIZE ( 512 / 8)
|
||||
|
||||
#define SHA256_BLOCK_SIZE ( 512 / 8)
|
||||
#define SHA512_BLOCK_SIZE (1024 / 8)
|
||||
#define SHA384_BLOCK_SIZE SHA512_BLOCK_SIZE
|
||||
#define SHA224_BLOCK_SIZE SHA256_BLOCK_SIZE
|
||||
|
||||
#ifndef SHA2_TYPES
|
||||
#define SHA2_TYPES
|
||||
typedef unsigned char uint8;
|
||||
typedef unsigned int uint32;
|
||||
typedef unsigned long long uint64;
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
unsigned int tot_len;
|
||||
unsigned int len;
|
||||
unsigned char block[2 * SHA256_BLOCK_SIZE];
|
||||
uint32 h[8];
|
||||
} sha256_ctx;
|
||||
|
||||
typedef struct {
|
||||
unsigned int tot_len;
|
||||
unsigned int len;
|
||||
unsigned char block[2 * SHA512_BLOCK_SIZE];
|
||||
uint64 h[8];
|
||||
} sha512_ctx;
|
||||
|
||||
typedef sha512_ctx sha384_ctx;
|
||||
typedef sha256_ctx sha224_ctx;
|
||||
|
||||
void sha224_init(sha224_ctx *ctx);
|
||||
void sha224_update(sha224_ctx *ctx, const unsigned char *message,
|
||||
unsigned int len);
|
||||
void sha224_final(sha224_ctx *ctx, unsigned char *digest);
|
||||
void sha224(const unsigned char *message, unsigned int len,
|
||||
unsigned char *digest);
|
||||
|
||||
void sha256_init(sha256_ctx * ctx);
|
||||
void sha256_update(sha256_ctx *ctx, const unsigned char *message,
|
||||
unsigned int len);
|
||||
void sha256_final(sha256_ctx *ctx, unsigned char *digest);
|
||||
void sha256(const unsigned char *message, unsigned int len,
|
||||
unsigned char *digest);
|
||||
|
||||
void sha384_init(sha384_ctx *ctx);
|
||||
void sha384_update(sha384_ctx *ctx, const unsigned char *message,
|
||||
unsigned int len);
|
||||
void sha384_final(sha384_ctx *ctx, unsigned char *digest);
|
||||
void sha384(const unsigned char *message, unsigned int len,
|
||||
unsigned char *digest);
|
||||
|
||||
void sha512_init(sha512_ctx *ctx);
|
||||
void sha512_update(sha512_ctx *ctx, const unsigned char *message,
|
||||
unsigned int len);
|
||||
void sha512_final(sha512_ctx *ctx, unsigned char *digest);
|
||||
void sha512(const unsigned char *message, unsigned int len,
|
||||
unsigned char *digest);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* !SHA2_H */
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#ifndef __SHA512_H__
|
||||
#define __SHA512_H__
|
||||
|
||||
#include<string>
|
||||
using namespace std;
|
||||
|
||||
string hash_sha512_cpp(string msg_arr);
|
||||
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,10 @@
|
||||
#ifndef __smtp_lib
|
||||
#define __smtp_lib
|
||||
|
||||
#include "php_tmpl_prefix.h"
|
||||
|
||||
#define EMAIL_PREFIX TMPL_PREFIX
|
||||
|
||||
int SMTP2( const char * _server, const char * _from, char * _to, char * _body, const char * _domain, const char * _user, const char * _pass, const char * _name);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,15 @@
|
||||
#ifndef __STOREFACE_H__
|
||||
#define __STOREFACE_H__
|
||||
|
||||
#include "vars.h"
|
||||
|
||||
long paylid_getAccountBalance(CVars in, CVars &out);
|
||||
long paylid_transferFund(CVars in, CVars &out);
|
||||
long paylid_checkTransferStatus(CVars in, CVars &out);
|
||||
long paylid_directAirTimeTopUp(CVars in, CVars &out);
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
vi:ts=2
|
||||
*/
|
||||
@@ -0,0 +1,20 @@
|
||||
#ifndef __timer_h__
|
||||
#define __timer_h__
|
||||
|
||||
|
||||
class CTimer
|
||||
{
|
||||
public:
|
||||
CTimer( );
|
||||
|
||||
void init();
|
||||
bool timeout( unsigned long t );
|
||||
void wake( unsigned long );
|
||||
unsigned long elapsed( );
|
||||
|
||||
private:
|
||||
unsigned long prev;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
#ifndef __mx_topups_h__
|
||||
#define __mx_topups_h__
|
||||
|
||||
#include "vars.h"
|
||||
|
||||
//long CreateCoreGradeAccount(CVars in, CVars &out);
|
||||
long CreateBulkTopupBatch(CVars in, CVars &out);
|
||||
long AddBulkTopupBatchItem(CVars in, CVars &out);
|
||||
long UpdateBulkTopupItem(CVars in, CVars &out);
|
||||
long DeliverBulkTopupItem(CVars in, CVars &out);
|
||||
long CreateTopupOrder(CVars in, CVars &out);
|
||||
long DeliverTopOrderByBalance(CVars in, CVars &out);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#ifndef __UTIL_H__
|
||||
#define __UTIL_H__
|
||||
|
||||
bool reg_match( const char * input, const char * regexp, char * ret=NULL, int sz=0, int * pos = NULL );
|
||||
//char * urlencode(const char * buf); // Encode a string using URL-encoding
|
||||
char * urlencode(const char * buf, char *, int ); // Encode a string using URL-encoding
|
||||
//char * urldecode( char * buf); // Decode a string using URL-encoding
|
||||
char * urldecode( char * buf, char *, int ); // Decode a string using URL-encoding
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,125 @@
|
||||
#ifndef __vars_h__
|
||||
#define __vars_h__
|
||||
|
||||
|
||||
#pragma interface
|
||||
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
|
||||
using std::string;
|
||||
using std::map;
|
||||
|
||||
/*
|
||||
struct hash_str
|
||||
{
|
||||
inline size_t string_hf(const string& str)
|
||||
{ return hash(str.c_str()); }
|
||||
};
|
||||
|
||||
struct MyHASHER : public hash<const char*>{
|
||||
size_t operator(string a_string){
|
||||
return (*this)( a_string.c_str() );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
struct eqstr
|
||||
{
|
||||
bool operator()(const char* s1, const char* s2) const
|
||||
{
|
||||
return strcmp(s1, s2) == 0;
|
||||
}
|
||||
};
|
||||
|
||||
*/
|
||||
|
||||
class varstring : public string
|
||||
{
|
||||
public:
|
||||
varstring();
|
||||
varstring( const varstring &c );
|
||||
varstring( const string &c );
|
||||
varstring( const char* c, int len);
|
||||
varstring( const char *c );
|
||||
|
||||
long Long() const;
|
||||
double Double();
|
||||
varstring& operator=( const char* c );
|
||||
void operator=( long l );
|
||||
void operator=( const string c );
|
||||
varstring& operator=( const varstring &c );
|
||||
operator long(); // type conversion
|
||||
operator const char*(); // type conversion
|
||||
|
||||
bool valid() const;
|
||||
void set_valid( bool validated = true );
|
||||
|
||||
bool db() const;
|
||||
void set_db( bool validated = true );
|
||||
|
||||
bool binary() const;
|
||||
void set_binary( bool binary = true );
|
||||
|
||||
friend class CVars;
|
||||
|
||||
private:
|
||||
bool validated;
|
||||
bool db_var; // is this variable to be used in DB updates
|
||||
bool binary_var;
|
||||
};
|
||||
|
||||
/*
|
||||
class string_key : public string
|
||||
{
|
||||
public:
|
||||
string_key& operator=( const char* c );
|
||||
void operator=( long l );
|
||||
void operator=( const string c );
|
||||
|
||||
string_key();
|
||||
string_key( const char *c );
|
||||
|
||||
bool valid() const;
|
||||
void set_valid( bool validated = true );
|
||||
|
||||
private:
|
||||
bool validated;
|
||||
};
|
||||
*/
|
||||
|
||||
|
||||
typedef
|
||||
// hash_map<const char*, char*, hash<const char*>, eqstr>
|
||||
// map< string_key, varstring >
|
||||
map< const string, varstring >
|
||||
CVars1;
|
||||
|
||||
|
||||
|
||||
class CVars : public CVars1
|
||||
{
|
||||
public:
|
||||
CVars() : CVars1() {};
|
||||
|
||||
CVars& operator<<( char const *name ); // schedule for db processing
|
||||
CVars& operator>>( char const *name ); // ignore db processing for this variable
|
||||
|
||||
void ClearDB();
|
||||
|
||||
long serialize( unsigned char *&buf ); // this will serialize the data into buf and return the resulting size
|
||||
// it is the responsibility of the caller to free the buffer with free()
|
||||
int deserialize( unsigned char *buf, long buf_sz ); // this will initialize the current instance by de-serializing the data from buf
|
||||
// returns number of elements de-serialized
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user