summaryrefslogtreecommitdiff
path: root/ext/rpc/com/conversion.h
blob: b8c534fa221d45735bab1bdb81d4e5a8f7fa6e3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef CONVERSION_H
#define CONVERSION_H

/* isn't this defined somewhere else ? */

#define Z_TRUE 1
#define Z_FALSE 0

#define VT_TRUE -1
#define VT_FALSE 0

BEGIN_EXTERN_C()

PHPAPI void php_pval_to_variant(pval *pval_arg, VARIANT *var_arg, int codepage TSRMLS_DC);
PHPAPI void php_pval_to_variant_ex(pval *pval_arg, VARIANT *var_arg, pval *pval_type, int codepage TSRMLS_DC);
PHPAPI void php_pval_to_variant_ex2(pval *pval_arg, VARIANT *var_arg, int type, int codepage TSRMLS_DC);
PHPAPI int php_variant_to_pval(VARIANT *var_arg, pval *pval_arg, int codepage TSRMLS_DC);
PHPAPI OLECHAR *php_char_to_OLECHAR(char *C_str, uint strlen, int codepage TSRMLS_DC);
PHPAPI char *php_OLECHAR_to_char(OLECHAR *unicode_str, uint *out_length, int codepage TSRMLS_DC);

END_EXTERN_C()

#endif