Documentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
SomeIpRemoveMethod
Valid for: CANoe DE • CANoe4SW DE
Function Syntax
long SomeIpRemoveMethod( dword methodHandle );
Description
This function removes a method from a Provided Service Instance. Afterwards, the callback registered with SomeIpAddMethod is no longer called.
Parameters
Return Values
- 0: The function was successfully executed
- >0: Error code
Example
In this example, it is assumed that the created method is contained in the FIBEX database that is assigned to the CANoe configuration. The method has the Method ID 31, two input parameters Member_value1 and Member_value2, and a return parameter Result.
variables
{
DWORD gPm; // provided method handle
}
void Initialize()
{
DWORD aep; // Application Endpoint handle
DWORD psi; // provided Service Instance handle
// open Application Endpoint
aep = SomeIpOpenLocalApplicationEndpoint(17, 50002);
// create Service Instance
psi = SomeIpCreateProvidedServiceInstance(aep,11,1);
// create method
gPm = SomeIpAddMethod(psi,31,"OnMethodRequest");
}
on key 'r'
{
// remove method
SomeIpRemoveMethod(gPm);
}
See Also