Cleanup: Rename mod_managed_lib to FreeSWITCH.Managed
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9901 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
598d6df506
commit
2f488fe2f0
|
@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
|
|||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("mod_managed_lib")]
|
||||
[assembly: AssemblyTitle("FreeSWITCH.Managed")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("mod_managed_lib")]
|
||||
[assembly: AssemblyProduct("FreeSWITCH.Managed")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2008")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
|
|
@ -54,7 +54,7 @@ namespace FreeSWITCH
|
|||
public static bool Load()
|
||||
{
|
||||
managedDir = Path.Combine(Native.freeswitch.SWITCH_GLOBAL_dirs.mod_dir, "managed");
|
||||
Log.WriteLine(LogLevel.Debug, "mod_managed_lib loader is starting with directory '{0}'.", managedDir);
|
||||
Log.WriteLine(LogLevel.Debug, "FreeSWITCH.Managed loader is starting with directory '{0}'.", managedDir);
|
||||
if (!Directory.Exists(managedDir)) {
|
||||
Log.WriteLine(LogLevel.Error, "Managed directory not found: {0}", managedDir);
|
||||
return false;
|
||||
|
@ -166,7 +166,7 @@ namespace FreeSWITCH
|
|||
|
||||
public static void Unload()
|
||||
{
|
||||
Log.WriteLine(LogLevel.Debug, "mod_managed_lib Loader is unloading.");
|
||||
Log.WriteLine(LogLevel.Debug, "FreeSWITCH.Managed Loader is unloading.");
|
||||
foreach (var t in functions.Values) {
|
||||
try {
|
||||
var unloadMethod = t.GetMethod("Unload", methodBindingFlags, null, Type.EmptyTypes, null);
|
||||
|
@ -271,7 +271,7 @@ namespace FreeSWITCH
|
|||
/// <summary>Runs an application function.</summary>
|
||||
public static bool Run(string command, IntPtr sessionHandle)
|
||||
{
|
||||
Log.WriteLine(LogLevel.Debug, "mod_managed_lib: attempting to run application '{0}'.", command);
|
||||
Log.WriteLine(LogLevel.Debug, "FreeSWITCH.Managed: attempting to run application '{0}'.", command);
|
||||
System.Diagnostics.Debug.Assert(sessionHandle != IntPtr.Zero, "sessionHandle is null.");
|
||||
var parsed = parseCommand(command);
|
||||
if (parsed == null) return false;
|
||||
|
|
|
@ -56,7 +56,7 @@ SWITCH_STANDARD_API(managed_api_function); /* Execute */
|
|||
SWITCH_STANDARD_APP(managed_app_function); /* Run */
|
||||
SWITCH_STANDARD_API(managed_loadassembly); /* Load assembly */
|
||||
|
||||
#define MOD_MANAGED_ASM_NAME "mod_managed_lib"
|
||||
#define MOD_MANAGED_ASM_NAME "FreeSWITCH.Managed"
|
||||
#define MOD_MANAGED_ASM_V1 1
|
||||
#define MOD_MANAGED_ASM_V2 0
|
||||
#define MOD_MANAGED_ASM_V3 2
|
||||
|
|
Loading…
Reference in New Issue