add syntax field to the api interface struct.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3000 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2006-10-08 05:04:34 +00:00
parent dd3cd99301
commit 2b53e80e34
10 changed files with 33 additions and 2 deletions
@@ -42,7 +42,8 @@ namespace FreeSwitch.Marshaling.Types
internal IntPtr interface_name;
//[MarshalAs(UnmanagedType.LPStr)]
internal IntPtr desc;
internal ApiFunction function;
internal ApiFunction function;
internal IntPtr syntax;
internal IntPtr next;
}
}
+1
View File
@@ -130,6 +130,7 @@ namespace FreeSwitch
/* Allocate umanaged mem to to interface fields so GC doesn't disturb them */
apiInterfaceMarshal.interface_name = Marshal.StringToHGlobalAnsi(apiInterface.Name);
apiInterfaceMarshal.desc = Marshal.StringToHGlobalAnsi(apiInterface.Description);
apiInterfaceMarshal.syntax = Marshal.StringToHGlobalAnsi(apiInterface.Syntax);
apiInterfaceMarshal.function = new ApiFunction(apiInterface.ApiFunction);
/* Set the handle of the managed object */
+7
View File
@@ -41,6 +41,7 @@ namespace FreeSwitch.Modules
{
private string name;
private string description;
private string syntax;
private ApiFunction apiFunction;
public HandleRef handle;
@@ -56,6 +57,12 @@ namespace FreeSwitch.Modules
get { return description; }
}
public string Syntax
{
set { syntax = value; }
get { return syntax; }
}
public ApiFunction ApiFunction
{
set { apiFunction = value; }