#include "ml-api-internal.h"
#include "ml-api-service.h"
#include "ml-api-service-private.h"
-#include "../../daemon/includes/ml-agent-dbus-interface.h"
+#include "ml-agent-dbus-interface.h"
/**
* @brief Destroy the pipeline of given ml_service_h
GAsyncQueue *out_data_queue;
} _ml_service_query_s;
-
-/**
- * @brief Internal function to get proxy of the pipeline d-bus interface
- */
-MachinelearningServicePipeline * _get_mlsp_proxy_new_for_bus_sync (void);
-
-/**
- * @brief Internal function to get proxy of the model d-bus interface
- */
-MachinelearningServiceModel * _get_mlsm_proxy_new_for_bus_sync (void);
-
#ifdef __cplusplus
}
#endif /* __cplusplus */
GDir *dir;
if (g_file_test (pkg_path, G_FILE_TEST_IS_DIR)) {
-
_I ("package path: %s", pkg_path);
dir = g_dir_open (pkg_path, 0, NULL);
return;
}
- if (g_strcmp0 (type, "rpk") != 0)
+ if (g_ascii_strcasecmp (type, "rpk") != 0)
return;
/* TODO handle allowed resources. Currently this only supports global resources */
}
/* Monitoring install, uninstall and upgrade events of the resource package. */
+ /** @todo Find when these ACKAGE_MANAGER_STATUS_TYPE_RES_* status called */
ret = package_manager_set_event_status (pkg_mgr,
PACKAGE_MANAGER_STATUS_TYPE_INSTALL | PACKAGE_MANAGER_STATUS_TYPE_UNINSTALL
| PACKAGE_MANAGER_STATUS_TYPE_UPGRADE | PACKAGE_MANAGER_STATUS_TYPE_RES_COPY
- | /* TODO: Find when these RES_* status called */
- PACKAGE_MANAGER_STATUS_TYPE_RES_CREATE_DIR | PACKAGE_MANAGER_STATUS_TYPE_RES_REMOVE
+ | PACKAGE_MANAGER_STATUS_TYPE_RES_CREATE_DIR | PACKAGE_MANAGER_STATUS_TYPE_RES_REMOVE
| PACKAGE_MANAGER_STATUS_TYPE_RES_UNINSTALL);
if (ret != PACKAGE_MANAGER_ERROR_NONE) {
_E ("package_manager_set_event_status() failed: %d", ret);