Changed namespace.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2720 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
James Green 2006-09-17 03:30:31 +00:00
parent 036599fb68
commit 1fdc0a26a7
67 changed files with 1648 additions and 1647 deletions

View File

@ -1,8 +1,8 @@
all: $(MODNAME).so
$(MODNAME).so:
gmcs -debug -unsafe -t:library -keyfile:public.snk \
-out:Freeswitch.dll -reference:Mono.Posix.dll \
/usr/local/freeswitch/bin/gmcs -debug -unsafe -t:library -keyfile:public.snk \
-out:FreeSwitch.dll -reference:Mono.Posix.dll \
Properties/AssemblyInfo.cs \
Marshaling/Types/ApiInterfaceMarshal.cs \
Marshaling/Types/ApplicationInterfaceMarshal.cs \
@ -24,6 +24,7 @@ $(MODNAME).so:
Marshaling/Types/IOEventHooksMarshal.cs \
Marshaling/Types/LoadableModuleInterfaceMarshal.cs \
Marshaling/Types/LoadableModuleMarshal.cs \
Marshaling/Types/StreamHandleMarshal.cs \
Marshaling/Types/TypesMarshal.cs \
Marshaling/BufferMarshaler.cs \
Marshaling/CallerExtensionMarshaler.cs \
@ -57,6 +58,8 @@ $(MODNAME).so:
Types/ChannelTimetable.cs \
Types/CoreSession.cs \
Types/DtmfCallbackFunction.cs \
Types/InputCallbackFunction.cs \
Types/InputType.cs \
Types/Event.cs \
Types/FileHandle.cs \
Types/LoadableModule.cs \
@ -67,12 +70,10 @@ $(MODNAME).so:
Types/StreamHandle.cs \
Types/TextChannel.cs \
Common.cs \
Core.cs \
Ivr.cs \
Module.cs \
clean:
rm -fr *.dll
install:
cp -f Freeswitch.dll /usr/local/freeswitch/lib/
cp -f FreeSwitch.dll /usr/local/freeswitch/lib/

View File

@ -31,10 +31,10 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.NET.Types;
using FreeSwitch.Marshaling.Types;
using FreeSwitch.Types;
namespace FreeSwitch.NET.Marshaling
namespace FreeSwitch.Marshaling
{
class BufferMarshaler : ICustomMarshaler
{
@ -60,14 +60,14 @@ namespace FreeSwitch.NET.Marshaling
public IntPtr MarshalManagedToNative(object obj)
{
FreeSwitch.NET.Types.Buffer buffer = (FreeSwitch.NET.Types.Buffer)obj;
FreeSwitch.Types.Buffer buffer = (FreeSwitch.Types.Buffer)obj;
return buffer.marshaledObject.Handle;
}
public object MarshalNativeToManaged(IntPtr bufferPtr)
{
FreeSwitch.NET.Types.Buffer buffer = new FreeSwitch.NET.Types.Buffer();
FreeSwitch.Types.Buffer buffer = new FreeSwitch.Types.Buffer();
BufferMarshal bufferMarshal = new BufferMarshal();
Marshal.PtrToStructure(bufferPtr, bufferMarshal);

View File

@ -31,10 +31,10 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.Types;
using FreeSwitch.Marshaling.Types;
namespace FreeSwitch.NET.Marshaling
namespace FreeSwitch.Marshaling
{
class CallerExtensionMarshaler : ICustomMarshaler
{

View File

@ -31,10 +31,10 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.Types;
using FreeSwitch.Marshaling.Types;
namespace FreeSwitch.NET.Marshaling
namespace FreeSwitch.Marshaling
{
class CallerProfileMarshaler : ICustomMarshaler
{

View File

@ -31,10 +31,10 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.Types;
using FreeSwitch.Marshaling.Types;
namespace FreeSwitch.NET.Marshaling
namespace FreeSwitch.Marshaling
{
class ChannelMarshaler : ICustomMarshaler
{

View File

@ -31,10 +31,10 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.Types;
using FreeSwitch.Marshaling.Types;
namespace FreeSwitch.NET.Marshaling
namespace FreeSwitch.Marshaling
{
class ChannelTimetableMarshaler : ICustomMarshaler
{

View File

@ -31,10 +31,10 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.Types;
using FreeSwitch.Marshaling.Types;
namespace FreeSwitch.NET.Marshaling
namespace FreeSwitch.Marshaling
{
class CoreSessionMarshaler : ICustomMarshaler
{

View File

@ -31,11 +31,11 @@
*/
using System;
using System.Collections;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.NET.Types;
using FreeSwitch.Marshaling.Types;
using FreeSwitch.Types;
using System.Runtime.InteropServices;
namespace FreeSwitch.NET.Marshaling
namespace FreeSwitch.Marshaling
{
class EventMarshaler : ICustomMarshaler
{

View File

@ -31,10 +31,10 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.Types;
using FreeSwitch.Marshaling.Types;
namespace FreeSwitch.NET.Marshaling
namespace FreeSwitch.Marshaling
{
class FileHandleMarshaler : ICustomMarshaler
{

View File

@ -31,10 +31,10 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.Types;
using FreeSwitch.Marshaling.Types;
namespace FreeSwitch.NET.Marshaling
namespace FreeSwitch.Marshaling
{
class MemoryPoolMarshaler : ICustomMarshaler
{

View File

@ -31,11 +31,11 @@
*/
using System;
using System.Collections;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.NET.Types;
using FreeSwitch.Marshaling.Types;
using FreeSwitch.Types;
using System.Runtime.InteropServices;
namespace FreeSwitch.NET.Marshaling
namespace FreeSwitch.Marshaling
{
class StreamHandleMarshaler : ICustomMarshaler
{

View File

@ -31,9 +31,9 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.Types;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
[StructLayout(LayoutKind.Sequential)]
internal class ApiInterfaceMarshal

View File

@ -31,9 +31,9 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.Types;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
[StructLayout(LayoutKind.Sequential)]
internal class ApplicationInterfaceMarshal

View File

@ -32,7 +32,7 @@
using System;
using System.Runtime.InteropServices;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
[StructLayout(LayoutKind.Sequential)]
internal class BufferMarshal

View File

@ -32,7 +32,7 @@
using System;
using System.Runtime.InteropServices;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
[StructLayout(LayoutKind.Sequential)]
internal class CallerExtensionMarshal

View File

@ -32,7 +32,7 @@
using System;
using System.Runtime.InteropServices;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
[StructLayout(LayoutKind.Sequential)]
internal class CallerProfileMarshal

View File

@ -31,7 +31,7 @@
*/
using System;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
internal enum ChannelFlagMarshal
{

View File

@ -31,9 +31,9 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.Types;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
[StructLayout(LayoutKind.Sequential)]
internal class ChannelMarshal

View File

@ -31,7 +31,7 @@
*/
using System;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
internal enum ChannelStateMarshal
{

View File

@ -32,7 +32,7 @@
using System;
using System.Runtime.InteropServices;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
[StructLayout(LayoutKind.Sequential)]
internal class ChannelTimetableMarshal

View File

@ -30,9 +30,9 @@
*
*/
using System;
using FreeSwitch.NET.Types;
using FreeSwitch.Types;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
internal class CodecImplementationMarshal
{

View File

@ -31,9 +31,9 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.Types;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
[StructLayout(LayoutKind.Sequential)]
internal class CodecInterfaceMarshal

View File

@ -32,7 +32,7 @@
using System;
using System.Text;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
internal class CodecMarshal
{

View File

@ -31,7 +31,7 @@
*/
using System;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
internal enum CodecTypesMarshal
{

View File

@ -33,7 +33,7 @@ using System;
using System.Text;
using System.Runtime.InteropServices;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
[StructLayout(LayoutKind.Sequential, Pack=1)]
internal class CoreSessionMarshal

View File

@ -31,9 +31,9 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.Types;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
[StructLayout(LayoutKind.Sequential)]
internal class EventMarshal

View File

@ -32,7 +32,7 @@
using System;
using System.Runtime.InteropServices;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
[StructLayout(LayoutKind.Sequential)]
internal class FileHandleMarshal

View File

@ -31,9 +31,9 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.Types;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
[StructLayout(LayoutKind.Sequential)]
internal class FrameMarshal

View File

@ -32,7 +32,7 @@
using System;
using System.Runtime.InteropServices;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
[StructLayout(LayoutKind.Sequential)]
internal class IOEventHooksMarshal

View File

@ -31,9 +31,9 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.Types;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
[StructLayout(LayoutKind.Sequential)]
internal class LoadableModuleInterfaceMarshal

View File

@ -31,9 +31,9 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.Types;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{

View File

@ -31,9 +31,9 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.Types;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
[StructLayout(LayoutKind.Sequential)]
internal class StreamHandleMarshal

View File

@ -31,9 +31,9 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.Types;
namespace FreeSwitch.NET.Marshaling.Types
namespace FreeSwitch.Marshaling.Types
{
public delegate
Status DtmfCallbackFunctionMarshal(

View File

@ -35,9 +35,9 @@ using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;
using FreeSwitch.NET;
using FreeSwitch.NET.Types;
using FreeSwitch.NET.Modules;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.Types;
using FreeSwitch.Modules;
using FreeSwitch.Marshaling.Types;
namespace FreeSwitch.NET
{

View File

@ -33,9 +33,9 @@ using System;
using System.Collections;
using System.Text;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.Types;
namespace FreeSwitch.NET.Modules
namespace FreeSwitch.Modules
{
public class Api
{

View File

@ -33,11 +33,11 @@ using System;
using System.Collections;
using System.Text;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Marshaling;
using FreeSwitch.NET.Types;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.Marshaling;
using FreeSwitch.Types;
using FreeSwitch.Marshaling.Types;
namespace FreeSwitch.NET.Modules
namespace FreeSwitch.Modules
{
public class Application
{

View File

@ -32,11 +32,11 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.NET.Marshaling;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.Types;
using FreeSwitch.Marshaling;
using FreeSwitch.Marshaling.Types;
namespace FreeSwitch.NET
namespace FreeSwitch
{
public partial class Switch
{

View File

@ -32,10 +32,10 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.NET.Marshaling;
using FreeSwitch.Types;
using FreeSwitch.Marshaling;
namespace FreeSwitch.NET
namespace FreeSwitch
{
public partial class Switch
{

View File

@ -34,7 +34,7 @@ using System.Runtime.CompilerServices;
using System.Diagnostics;
using System.Text;
namespace FreeSwitch.NET
namespace FreeSwitch
{
public partial class Switch
{

View File

@ -32,10 +32,10 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.NET.Marshaling;
using FreeSwitch.Types;
using FreeSwitch.Marshaling;
namespace FreeSwitch.NET
namespace FreeSwitch
{
public partial class Switch
{

View File

@ -32,11 +32,11 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.NET.Marshaling;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.Types;
using FreeSwitch.Marshaling;
using FreeSwitch.Marshaling.Types;
namespace FreeSwitch.NET
namespace FreeSwitch
{
public partial class Switch
{

View File

@ -31,10 +31,10 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.Types;
using FreeSwitch.Marshaling.Types;
namespace FreeSwitch.NET
namespace FreeSwitch
{
/*
* SWITCH_DECLARE(switch_status_t) switch_loadable_module_load_module(char *dir, char *fname)

View File

@ -31,10 +31,10 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Types;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.Types;
using FreeSwitch.Marshaling.Types;
namespace FreeSwitch.NET
namespace FreeSwitch
{
/*
* SWITCH_DECLARE(switch_status_t) switch_loadable_module_load_module(char *dir, char *fname)

View File

@ -31,7 +31,7 @@
*/
using System;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
}

View File

@ -34,7 +34,7 @@ using System.Collections;
using System.Runtime.InteropServices;
using System.Text;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
/*
public class ApplicationInterface

View File

@ -32,7 +32,7 @@
using System;
using System.Runtime.InteropServices;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
public class Buffer
{

View File

@ -31,7 +31,7 @@
*/
using System;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
public enum CallCause
{

View File

@ -31,9 +31,9 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.Marshaling.Types;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
public class CallerExtension
{

View File

@ -31,9 +31,9 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.Marshaling.Types;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
public class CallerProfile
{

View File

@ -31,9 +31,9 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.Marshaling.Types;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
/*
* char *name;

View File

@ -31,7 +31,7 @@
*/
using System;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
public enum ChannelFlag
{

View File

@ -31,7 +31,7 @@
*/
using System;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
public enum ChannelState
{

View File

@ -32,7 +32,7 @@
using System;
using System.Runtime.InteropServices;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
public class ChannelTimetable
{

View File

@ -33,9 +33,9 @@ using System;
using System.Collections;
using System.Runtime.InteropServices;
using System.Text;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.Marshaling.Types;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
/*
* uint32_t id;

View File

@ -31,7 +31,7 @@
*/
using System;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
public delegate Status DtmfCallbackFunction(CoreSession session, string dtmf);
}

View File

@ -34,7 +34,7 @@ using System.Collections;
using System.Text;
using System.Runtime.InteropServices;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
public enum Priority
{

View File

@ -31,9 +31,9 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.Marshaling.Types;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
public class FileHandle
{

View File

@ -31,9 +31,9 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Marshaling;
using FreeSwitch.Marshaling;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
public delegate Status InputCallbackFunction(
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(StreamHandleMarshaler))]

View File

@ -31,7 +31,7 @@
*/
using System;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
public enum InputType
{

View File

@ -32,7 +32,7 @@
using System;
using System.Runtime.InteropServices;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
public class LoadableModule
{

View File

@ -33,9 +33,9 @@ using System;
using System.Collections;
using System.Runtime.InteropServices;
using System.Text;
using FreeSwitch.NET.Marshaling;
using FreeSwitch.Marshaling;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
public delegate Status WriteFunction(
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(StreamHandleMarshaler))]

View File

@ -1,7 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
public class MemoryPool
{

View File

@ -31,9 +31,9 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Marshaling;
using FreeSwitch.Marshaling;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
public delegate Status ModuleReload();
public delegate bool ModulePause();

View File

@ -34,7 +34,7 @@ using System.Collections;
using System.Runtime.InteropServices;
using System.Text;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
/*
public class ApplicationInterface

View File

@ -31,7 +31,7 @@
*/
using System;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
public enum Status
{

View File

@ -31,9 +31,9 @@
*/
using System;
using System.Runtime.InteropServices;
using FreeSwitch.NET.Marshaling.Types;
using FreeSwitch.Marshaling.Types;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
public class StreamHandle
{

View File

@ -31,7 +31,7 @@
*/
using System;
namespace FreeSwitch.NET.Types
namespace FreeSwitch.Types
{
public enum TextChannel
{