Back to index

php5  5.3.10
Defines | Typedefs | Functions
php_wddx_api.h File Reference
#include "ext/standard/php_smart_str.h"

Go to the source code of this file.

Defines

#define WDDX_ARRAY_S   "<array length='%d'>"
#define WDDX_ARRAY_E   "</array>"
#define WDDX_BINARY_S   "<binary>"
#define WDDX_BINARY_E   "</binary>"
#define WDDX_BOOLEAN_TRUE   "<boolean value='true'/>"
#define WDDX_BOOLEAN_FALSE   "<boolean value='false'/>"
#define WDDX_CHAR   "<char code='%02X'/>"
#define WDDX_COMMENT_S   "<comment>"
#define WDDX_COMMENT_E   "</comment>"
#define WDDX_DATA_S   "<data>"
#define WDDX_DATA_E   "</data>"
#define WDDX_HEADER   "<header/>"
#define WDDX_HEADER_S   "<header>"
#define WDDX_HEADER_E   "</header>"
#define WDDX_NULL   "<null/>"
#define WDDX_NUMBER   "<number>%s</number>"
#define WDDX_PACKET_S   "<wddxPacket version='1.0'>"
#define WDDX_PACKET_E   "</wddxPacket>"
#define WDDX_STRING_S   "<string>"
#define WDDX_STRING_E   "</string>"
#define WDDX_STRUCT_S   "<struct>"
#define WDDX_STRUCT_E   "</struct>"
#define WDDX_VAR_S   "<var name='%s'>"
#define WDDX_VAR_E   "</var>"
#define php_wddx_add_chunk(packet, str)   smart_str_appends(packet, str)
#define php_wddx_add_chunk_ex(packet, str, len)   smart_str_appendl(packet, str, len)
#define php_wddx_add_chunk_static(packet, str)   smart_str_appendl(packet, str, sizeof(str)-1)
#define php_wddx_gather(packet)   estrndup(packet->c, packet->len)

Typedefs

typedef smart_str wddx_packet

Functions

wddx_packetphp_wddx_constructor (void)
void php_wddx_destructor (wddx_packet *packet)
void php_wddx_packet_start (wddx_packet *packet, char *comment, int comment_len)
void php_wddx_packet_end (wddx_packet *packet)
void php_wddx_serialize_var (wddx_packet *packet, zval *var, char *name, int name_len TSRMLS_DC)
int php_wddx_deserialize_ex (char *, int, zval *return_value)

Define Documentation

#define php_wddx_add_chunk (   packet,
  str 
)    smart_str_appends(packet, str)

Definition at line 51 of file php_wddx_api.h.

#define php_wddx_add_chunk_ex (   packet,
  str,
  len 
)    smart_str_appendl(packet, str, len)

Definition at line 52 of file php_wddx_api.h.

#define php_wddx_add_chunk_static (   packet,
  str 
)    smart_str_appendl(packet, str, sizeof(str)-1)

Definition at line 53 of file php_wddx_api.h.

#define php_wddx_gather (   packet)    estrndup(packet->c, packet->len)

Definition at line 65 of file php_wddx_api.h.

#define WDDX_ARRAY_E   "</array>"

Definition at line 27 of file php_wddx_api.h.

#define WDDX_ARRAY_S   "<array length='%d'>"

Definition at line 26 of file php_wddx_api.h.

#define WDDX_BINARY_E   "</binary>"

Definition at line 29 of file php_wddx_api.h.

#define WDDX_BINARY_S   "<binary>"

Definition at line 28 of file php_wddx_api.h.

#define WDDX_BOOLEAN_FALSE   "<boolean value='false'/>"

Definition at line 31 of file php_wddx_api.h.

#define WDDX_BOOLEAN_TRUE   "<boolean value='true'/>"

Definition at line 30 of file php_wddx_api.h.

#define WDDX_CHAR   "<char code='%02X'/>"

Definition at line 32 of file php_wddx_api.h.

#define WDDX_COMMENT_E   "</comment>"

Definition at line 34 of file php_wddx_api.h.

#define WDDX_COMMENT_S   "<comment>"

Definition at line 33 of file php_wddx_api.h.

#define WDDX_DATA_E   "</data>"

Definition at line 36 of file php_wddx_api.h.

#define WDDX_DATA_S   "<data>"

Definition at line 35 of file php_wddx_api.h.

#define WDDX_HEADER   "<header/>"

Definition at line 37 of file php_wddx_api.h.

#define WDDX_HEADER_E   "</header>"

Definition at line 39 of file php_wddx_api.h.

#define WDDX_HEADER_S   "<header>"

Definition at line 38 of file php_wddx_api.h.

#define WDDX_NULL   "<null/>"

Definition at line 40 of file php_wddx_api.h.

#define WDDX_NUMBER   "<number>%s</number>"

Definition at line 41 of file php_wddx_api.h.

#define WDDX_PACKET_E   "</wddxPacket>"

Definition at line 43 of file php_wddx_api.h.

#define WDDX_PACKET_S   "<wddxPacket version='1.0'>"

Definition at line 42 of file php_wddx_api.h.

#define WDDX_STRING_E   "</string>"

Definition at line 45 of file php_wddx_api.h.

#define WDDX_STRING_S   "<string>"

Definition at line 44 of file php_wddx_api.h.

#define WDDX_STRUCT_E   "</struct>"

Definition at line 47 of file php_wddx_api.h.

#define WDDX_STRUCT_S   "<struct>"

Definition at line 46 of file php_wddx_api.h.

#define WDDX_VAR_E   "</var>"

Definition at line 49 of file php_wddx_api.h.

#define WDDX_VAR_S   "<var name='%s'>"

Definition at line 48 of file php_wddx_api.h.


Typedef Documentation

Definition at line 55 of file php_wddx_api.h.


Function Documentation

int php_wddx_deserialize_ex ( char *  ,
int  ,
zval *  return_value 
)
void php_wddx_destructor ( wddx_packet packet)
void php_wddx_packet_end ( wddx_packet packet)
void php_wddx_packet_start ( wddx_packet packet,
char *  comment,
int  comment_len 
)
void php_wddx_serialize_var ( wddx_packet packet,
zval *  var,
char *  name,
int name_len  TSRMLS_DC 
)