run indent on the whole tree and update copyright dates in prep for 1.0.5

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16579 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2010-02-06 03:38:24 +00:00
1 parent 7b347417e5
commit 886e1ddb4d
229 files changed
+20252 -20192

No files matched your search

@@ -34,12 +34,10 @@
#define FREESWITCH_MANAGED_H
SWITCH_BEGIN_EXTERN_C
#include <switch.h>
#include <switch_cpp.h>
typedef void (*hangupFunction)(void);
typedef char* (*inputFunction)(void*, switch_input_type_t);
typedef void (*hangupFunction) (void);
typedef char *(*inputFunction) (void *, switch_input_type_t);
#ifndef _MANAGED
#include <glib.h>
@@ -79,58 +77,109 @@ extern mod_managed_globals globals;
#endif
SWITCH_END_EXTERN_C
#ifdef _MANAGED
// this section remove linker error LNK4248 for these opaque structures
struct switch_core_session {char foo[];};
struct apr_pool_t {char foo[];};
struct switch_channel {char foo[];};
struct apr_thread_t {char foo[];};
struct switch_hash {char foo[];};
struct apr_thread_mutex_t {char foo[];};
struct switch_network_list {char foo[];};
struct switch_xml_binding {char foo[];};
struct apr_sockaddr_t {char foo[];};
struct switch_core_port_allocator {char foo[];};
struct switch_media_bug {char foo[];};
struct switch_rtp {char foo[];};
struct sqlite3_stmt {char foo[];};
struct switch_buffer {char foo[];};
struct switch_ivr_menu {char foo[];};
struct switch_event_node {char foo[];};
struct switch_ivr_digit_stream_parser {char foo[];};
struct sqlite3 {char foo[];};
struct switch_ivr_digit_stream {char foo[];};
struct real_pcre {char foo[];};
struct HashElem {char foo[];};
struct switch_ivr_menu_xml_ctx {char foo[];};
struct apr_file_t {char foo[];};
struct apr_thread_rwlock_t {char foo[];};
struct apr_pollfd_t {char foo[];};
struct apr_queue_t {char foo[];};
struct apr_socket_t {char foo[];};
struct switch_core_session {
char foo[];
};
struct apr_pool_t {
char foo[];
};
struct switch_channel {
char foo[];
};
struct apr_thread_t {
char foo[];
};
struct switch_hash {
char foo[];
};
struct apr_thread_mutex_t {
char foo[];
};
struct switch_network_list {
char foo[];
};
struct switch_xml_binding {
char foo[];
};
struct apr_sockaddr_t {
char foo[];
};
struct switch_core_port_allocator {
char foo[];
};
struct switch_media_bug {
char foo[];
};
struct switch_rtp {
char foo[];
};
struct sqlite3_stmt {
char foo[];
};
struct switch_buffer {
char foo[];
};
struct switch_ivr_menu {
char foo[];
};
struct switch_event_node {
char foo[];
};
struct switch_ivr_digit_stream_parser {
char foo[];
};
struct sqlite3 {
char foo[];
};
struct switch_ivr_digit_stream {
char foo[];
};
struct real_pcre {
char foo[];
};
struct HashElem {
char foo[];
};
struct switch_ivr_menu_xml_ctx {
char foo[];
};
struct apr_file_t {
char foo[];
};
struct apr_thread_rwlock_t {
char foo[];
};
struct apr_pollfd_t {
char foo[];
};
struct apr_queue_t {
char foo[];
};
struct apr_socket_t {
char foo[];
};
// LNK Error
using namespace System;
using namespace System::Reflection;
using namespace System::Runtime::InteropServices;
public ref class FreeSwitchManaged
{
public:
static Assembly^ mod_dotnet_managed;
static MethodInfo^ loadMethod;
public ref class FreeSwitchManaged {
public:
static Assembly ^ mod_dotnet_managed;
static MethodInfo ^ loadMethod;
};
#endif
class ManagedSession : public CoreSession
{
public:
class ManagedSession:public CoreSession {
public:
ManagedSession(void);
ManagedSession(char *uuid);
ManagedSession(switch_core_session_t *session);
virtual ~ManagedSession();
virtual ~ ManagedSession();
virtual bool begin_allow_threads();
virtual bool end_allow_threads();
@@ -138,8 +187,8 @@ public:
virtual switch_status_t run_dtmf_callback(void *input, switch_input_type_t itype);
// P/Invoke function pointer to delegates
inputFunction dtmfDelegate;
hangupFunction hangupDelegate;
inputFunction dtmfDelegate;
hangupFunction hangupDelegate;
};
#endif