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:
Michael Giagnocavo 2008-10-09 00:11:21 +00:00
parent 598d6df506
commit 2f488fe2f0
3 changed files with 6 additions and 6 deletions

View File

@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following // General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information // set of attributes. Change these attribute values to modify the information
// associated with an assembly. // associated with an assembly.
[assembly: AssemblyTitle("mod_managed_lib")] [assembly: AssemblyTitle("FreeSWITCH.Managed")]
[assembly: AssemblyDescription("")] [assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")] [assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("mod_managed_lib")] [assembly: AssemblyProduct("FreeSWITCH.Managed")]
[assembly: AssemblyCopyright("Copyright © 2008")] [assembly: AssemblyCopyright("Copyright © 2008")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]

View File

@ -54,7 +54,7 @@ namespace FreeSWITCH
public static bool Load() public static bool Load()
{ {
managedDir = Path.Combine(Native.freeswitch.SWITCH_GLOBAL_dirs.mod_dir, "managed"); 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)) { if (!Directory.Exists(managedDir)) {
Log.WriteLine(LogLevel.Error, "Managed directory not found: {0}", managedDir); Log.WriteLine(LogLevel.Error, "Managed directory not found: {0}", managedDir);
return false; return false;
@ -166,7 +166,7 @@ namespace FreeSWITCH
public static void Unload() 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) { foreach (var t in functions.Values) {
try { try {
var unloadMethod = t.GetMethod("Unload", methodBindingFlags, null, Type.EmptyTypes, null); var unloadMethod = t.GetMethod("Unload", methodBindingFlags, null, Type.EmptyTypes, null);
@ -271,7 +271,7 @@ namespace FreeSWITCH
/// <summary>Runs an application function.</summary> /// <summary>Runs an application function.</summary>
public static bool Run(string command, IntPtr sessionHandle) 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."); System.Diagnostics.Debug.Assert(sessionHandle != IntPtr.Zero, "sessionHandle is null.");
var parsed = parseCommand(command); var parsed = parseCommand(command);
if (parsed == null) return false; if (parsed == null) return false;

View File

@ -56,7 +56,7 @@ SWITCH_STANDARD_API(managed_api_function); /* Execute */
SWITCH_STANDARD_APP(managed_app_function); /* Run */ SWITCH_STANDARD_APP(managed_app_function); /* Run */
SWITCH_STANDARD_API(managed_loadassembly); /* Load assembly */ 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_V1 1
#define MOD_MANAGED_ASM_V2 0 #define MOD_MANAGED_ASM_V2 0
#define MOD_MANAGED_ASM_V3 2 #define MOD_MANAGED_ASM_V3 2