mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-19 21:40:24 +00: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);
|
||||
getMethodDecl.Parameter.Add(instanceType);
|
||||
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)
|
||||
{
|
||||
|
@ -135,7 +135,7 @@ namespace LwipSnmpCodeGeneration
|
||||
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("value", VariableType.VoidString, "*"));
|
||||
getMethodDecl.ReturnType = new VariableType(null, LwipDefs.Vt_U16);
|
||||
getMethodDecl.ReturnType = new VariableType(null, LwipDefs.Vt_S16);
|
||||
mibFile.Declarations.Add(getMethodDecl);
|
||||
|
||||
Function getMethod = Function.FromDeclaration(getMethodDecl);
|
||||
|
Loading…
x
Reference in New Issue
Block a user