<function name="rpcf_delete_slink" id="0x5100"> <input> <integer name="slink_id"/> </input> <output> <integer name="error_code"/> <if variable="error_code" value="0" condition="ne"> <error code="13" comment="unable to delete service link"/> </if> </output> </function>
function rpcf_delete_slink($slink_id) { //0x5100 if (!$this->connection->urfa_call(0x5100)) { print "Error calling function ". __FUNCTION__ ."\n"; return FALSE; } $packet = $this->connection->getPacket(); $packet->DataSetInt($slink_id); $this->connection->urfa_send_param($packet); if ($x = $this->connection->urfa_get_data()) { $ret=$x->DataGetInt(); // $this->connection->urfa_get_data(); } else { return -1; // unable to delete service link } return $ret; }