1 /*
2    +----------------------------------------------------------------------+
3    | PHP Version 5                                                        |
4    +----------------------------------------------------------------------+
5    | This source file is subject to version 3.01 of the PHP license,      |
6    | that is bundled with this package in the file LICENSE, and is        |
7    | available through the world-wide-web at the following url:           |
8    | http://www.php.net/license/3_01.txt                                  |
9    | If you did not receive a copy of the PHP license and are unable to   |
10    | obtain it through the world-wide-web, please send a note to          |
11    | license@php.net so we can mail you a copy immediately.               |
12    +----------------------------------------------------------------------+
13    | Authors: Kirti Velankar <kirtig@yahoo-inc.com>                       |
14    +----------------------------------------------------------------------+
15 */
16 #ifndef DATE_FORMAT_DATA_H
17 #define DATE_FORMAT_DATA_H
18 
19 #include <php.h>
20 
21 #include <unicode/udat.h>
22 
23 #include "intl_error.h"
24 
25 typedef struct {
26 	// error hangling
27 	intl_error      error;
28 
29 	// formatter handling
30 	UDateFormat *  udatf;
31 } dateformat_data;
32 
33 dateformat_data* dateformat_data_create( TSRMLS_D );
34 void dateformat_data_init( dateformat_data* datef_data TSRMLS_DC );
35 void dateformat_data_free( dateformat_data* datef_data TSRMLS_DC );
36 
37 #endif // DATE_FORMAT_DATA_H
38