/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2014 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | | http://www.php.net/license/3_01.txt | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Author: Andrei Zmievski | +----------------------------------------------------------------------+ */ /* $Id$ */ #ifndef PHP_WDDX_API_H #define PHP_WDDX_API_H #include "ext/standard/php_smart_str.h" #define WDDX_ARRAY_S "" #define WDDX_ARRAY_E "" #define WDDX_BINARY_S "" #define WDDX_BINARY_E "" #define WDDX_BOOLEAN_TRUE "" #define WDDX_BOOLEAN_FALSE "" #define WDDX_CHAR "" #define WDDX_COMMENT_S "" #define WDDX_COMMENT_E "" #define WDDX_DATA_S "" #define WDDX_DATA_E "" #define WDDX_HEADER "
" #define WDDX_HEADER_S "
" #define WDDX_HEADER_E "
" #define WDDX_NULL "" #define WDDX_NUMBER "%s" #define WDDX_PACKET_S "" #define WDDX_PACKET_E "" #define WDDX_STRING_S "" #define WDDX_STRING_E "" #define WDDX_STRUCT_S "" #define WDDX_STRUCT_E "" #define WDDX_VAR_S "" #define WDDX_VAR_E "" #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) typedef smart_str wddx_packet; wddx_packet* php_wddx_constructor(void); void php_wddx_destructor(wddx_packet *packet); void php_wddx_packet_start(wddx_packet *packet, char *comment, size_t comment_len); void php_wddx_packet_end(wddx_packet *packet); void php_wddx_serialize_var(wddx_packet *packet, zval *var, zend_string *name TSRMLS_DC); int php_wddx_deserialize_ex(char *, int, zval *return_value); #define php_wddx_gather(packet) estrndup(packet->c, packet->len) #endif /* PHP_WDDX_API_H */