mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 13:34:38 +08:00
Adapt MIB compiler to changed function signature of my last commit. Done with patch #9044: SNMP response for failed get operation.
This commit is contained in:
parent
a62e4452a2
commit
f6468510c6
@ -116,7 +116,7 @@ namespace LwipSnmpCodeGeneration
|
|||||||
FunctionDeclaration getMethodDecl = new FunctionDeclaration(this.GetMethodName, isStatic: true);
|
FunctionDeclaration getMethodDecl = new FunctionDeclaration(this.GetMethodName, isStatic: true);
|
||||||
getMethodDecl.Parameter.Add(instanceType);
|
getMethodDecl.Parameter.Add(instanceType);
|
||||||
getMethodDecl.Parameter.Add(new VariableType("value", VariableType.VoidString, "*"));
|
getMethodDecl.Parameter.Add(new VariableType("value", VariableType.VoidString, "*"));
|
||||||
getMethodDecl.ReturnType = new VariableType(null, LwipDefs.Vt_U16);
|
getMethodDecl.ReturnType = new VariableType(null, LwipDefs.Vt_S16);
|
||||||
|
|
||||||
if (generateDeclarations)
|
if (generateDeclarations)
|
||||||
{
|
{
|
||||||
|
@ -135,7 +135,7 @@ namespace LwipSnmpCodeGeneration
|
|||||||
FunctionDeclaration getMethodDecl = new FunctionDeclaration(this.Name + LwipDefs.FnctSuffix_GetValue, isStatic: true);
|
FunctionDeclaration getMethodDecl = new FunctionDeclaration(this.Name + LwipDefs.FnctSuffix_GetValue, isStatic: true);
|
||||||
getMethodDecl.Parameter.Add(new VariableType("instance", LwipDefs.Vt_StNodeInstance, "*"));
|
getMethodDecl.Parameter.Add(new VariableType("instance", LwipDefs.Vt_StNodeInstance, "*"));
|
||||||
getMethodDecl.Parameter.Add(new VariableType("value", VariableType.VoidString, "*"));
|
getMethodDecl.Parameter.Add(new VariableType("value", VariableType.VoidString, "*"));
|
||||||
getMethodDecl.ReturnType = new VariableType(null, LwipDefs.Vt_U16);
|
getMethodDecl.ReturnType = new VariableType(null, LwipDefs.Vt_S16);
|
||||||
mibFile.Declarations.Add(getMethodDecl);
|
mibFile.Declarations.Add(getMethodDecl);
|
||||||
|
|
||||||
Function getMethod = Function.FromDeclaration(getMethodDecl);
|
Function getMethod = Function.FromDeclaration(getMethodDecl);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user