mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user