This patch adds implementation of the virtual function, stop_target().
Signed-off-by: Wook Song <wook16.song@samsung.com>
int runInput (input_config_t *input) const;
int stop () const;
+ int stop_target (int id) const;
int registerModel (model_config_t *model) const;
int deregisterModel (unsigned long long id) const;
return 0;
}
+int TrinityVision2API::stop_target (int id) const
+{
+ int ret;
+
+ if (!this->initialized())
+ return -EPERM;
+
+ ret = ioctl (this->getDeviceFD (), TRINITY_IOCTL_STOP_REQUEST, &id);
+ if (ret != 0)
+ return -errno;
+
+ return 0;
+}
+
int
TrinityVision2API::getDrvVersion () const
{