mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-20 18:36:46 +00:00
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8545 d0543943-73ff-0310-b7d9-9358b9ac24b2
27 lines
734 B
C++
27 lines
734 B
C++
#ifndef ENV_INT_HPP_INCLUDED
|
|
#define ENV_INT_HPP_INCLUDED
|
|
|
|
#include "xmlrpc-c/util.h"
|
|
|
|
namespace xmlrpc_c {
|
|
|
|
class env_wrap {
|
|
/*----------------------------------------------------------------------------
|
|
A wrapper to assist in using the Xmlrpc-c C libraries in
|
|
Xmlrpc-c C++ code.
|
|
|
|
To use the C libraries, you have to use type xmlrpc_env, but that type
|
|
does not have an automatic destructor (because it's C), so it's hard
|
|
to throw an error from a context in which a variable of that type
|
|
exists. This wrapper provides that automatic destructor.
|
|
-----------------------------------------------------------------------------*/
|
|
public:
|
|
env_wrap();
|
|
~env_wrap();
|
|
xmlrpc_env env_c;
|
|
};
|
|
|
|
|
|
} // namespace
|
|
#endif
|