summaryrefslogtreecommitdiff
path: root/php/src/IcePHP/Communicator.h
blob: 02b2c2aa553cee3ba7bc269cf99198061267f7e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// **********************************************************************
//
// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

#ifndef ICE_PHP_COMMUNICATOR_H
#define ICE_PHP_COMMUNICATOR_H

#include <Config.h>

//
// Ice_Communicator class methods.
//
extern "C"
{
ZEND_FUNCTION(Ice_Communicator___construct);
ZEND_FUNCTION(Ice_Communicator_getProperty);
ZEND_FUNCTION(Ice_Communicator_stringToProxy);
ZEND_FUNCTION(Ice_Communicator_proxyToString);
ZEND_FUNCTION(Ice_Communicator_propertyToProxy);
ZEND_FUNCTION(Ice_Communicator_stringToIdentity);
ZEND_FUNCTION(Ice_Communicator_identityToString);
ZEND_FUNCTION(Ice_Communicator_addObjectFactory);
ZEND_FUNCTION(Ice_Communicator_findObjectFactory);
ZEND_FUNCTION(Ice_Communicator_flushBatchRequests);
}

#define ICE_PHP_COMMUNICATOR_FUNCTIONS \
    ZEND_FE(Ice_Communicator___construct,            NULL) \
    ZEND_FE(Ice_Communicator_getProperty,            NULL) \
    ZEND_FE(Ice_Communicator_stringToProxy,          NULL) \
    ZEND_FE(Ice_Communicator_proxyToString,          NULL) \
    ZEND_FE(Ice_Communicator_propertyToProxy,        NULL) \
    ZEND_FE(Ice_Communicator_stringToIdentity,       NULL) \
    ZEND_FE(Ice_Communicator_identityToString,       NULL) \
    ZEND_FE(Ice_Communicator_addObjectFactory,       NULL) \
    ZEND_FE(Ice_Communicator_findObjectFactory,      NULL) \
    ZEND_FE(Ice_Communicator_flushBatchRequests,     NULL)

namespace IcePHP
{

bool communicatorInit(TSRMLS_D);

bool createCommunicator(TSRMLS_D);
Ice::CommunicatorPtr getCommunicator(TSRMLS_D);
zval* getCommunicatorZval(TSRMLS_D);

} // End of namespace IcePHP

#endif