File: Communicator.h

package info (click to toggle)
zeroc-ice 3.4.2-8.2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 55,336 kB
  • sloc: cpp: 271,293; java: 123,807; cs: 93,408; python: 22,864; makefile: 6,831; xml: 5,598; ruby: 5,224; php: 4,897; yacc: 3,093; lex: 2,275; ansic: 1,304; perl: 1,200; sh: 210; sql: 73
file content (58 lines) | stat: -rw-r--r-- 1,340 bytes parent folder | download
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
56
57
58
// **********************************************************************
//
// Copyright (c) 2003-2011 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 ICEPHP_COMMUNICATOR_H
#define ICEPHP_COMMUNICATOR_H

#include <Config.h>
#include <Ice/CommunicatorF.h>

//
// Global functions.
//
extern "C"
{
ZEND_FUNCTION(Ice_initialize);
ZEND_FUNCTION(Ice_register);
ZEND_FUNCTION(Ice_unregister);
ZEND_FUNCTION(Ice_find);
ZEND_FUNCTION(Ice_getProperties);
}

namespace IcePHP
{

bool communicatorInit(TSRMLS_D);
bool communicatorShutdown(TSRMLS_D);
bool communicatorRequestInit(TSRMLS_D);
bool communicatorRequestShutdown(TSRMLS_D);

//
// Class entry.
//
extern zend_class_entry* communicatorClassEntry;

//
// The CommunicatorInfo class represents a communicator that is in use by a PHP request.
//
class CommunicatorInfo : public IceUtil::Shared
{
public:

    virtual void getZval(zval* TSRMLS_DC) = 0;
    virtual void addRef(TSRMLS_D) = 0;
    virtual void decRef(TSRMLS_D) = 0;

    virtual Ice::CommunicatorPtr getCommunicator() const = 0;
};
typedef IceUtil::Handle<CommunicatorInfo> CommunicatorInfoPtr;

} // End of namespace IcePHP

#endif