return 0;
}
-
int app_context_foreach_app_context(app_manager_app_context_cb callback, void *user_data)
{
foreach_context_s foreach_context = {
return APP_MANAGER_ERROR_NONE;
}
-int app_context_destroy(app_context_h app_context)
+API int app_context_destroy(app_context_h app_context)
{
if (app_context == NULL)
{
return APP_MANAGER_ERROR_NONE;
}
-int app_context_get_package(app_context_h app_context, char **package)
+API int app_context_get_package(app_context_h app_context, char **package)
{
// TODO: this function must be deprecated
return app_context_get_app_id(app_context, package);
}
-int app_context_get_app_id(app_context_h app_context, char **app_id)
+API int app_context_get_app_id(app_context_h app_context, char **app_id)
{
char *app_id_dup;
return APP_MANAGER_ERROR_NONE;
}
-
-int app_context_get_pid(app_context_h app_context, pid_t *pid)
+API int app_context_get_pid(app_context_h app_context, pid_t *pid)
{
if (app_context == NULL || pid == NULL)
{
return APP_MANAGER_ERROR_NONE;
}
-int app_context_is_terminated(app_context_h app_context, bool *terminated)
+API int app_context_is_terminated(app_context_h app_context, bool *terminated)
{
if (app_context == NULL || terminated == NULL)
{
return APP_MANAGER_ERROR_NONE;
}
-int app_context_is_equal(app_context_h lhs, app_context_h rhs, bool *equal)
+API int app_context_is_equal(app_context_h lhs, app_context_h rhs, bool *equal)
{
if (lhs == NULL || rhs == NULL || equal == NULL)
{
return APP_MANAGER_ERROR_NONE;
}
-int app_context_clone(app_context_h *clone, app_context_h app_context)
+API int app_context_clone(app_context_h *clone, app_context_h app_context)
{
int retval;
app_context_unlock_event_cb_context();
}
-
return 0;
}
-int app_info_foreach_app_filter_cb(pkgmgrinfo_appinfo_h handle, void *user_data)
+static int app_info_foreach_app_filter_cb(pkgmgrinfo_appinfo_h handle, void *user_data)
{
int retval = 0;
char *appid = NULL;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_foreach_app_info_cb(pkgmgrinfo_appinfo_h handle, void *cb_data)
+static int app_info_foreach_app_info_cb(pkgmgrinfo_appinfo_h handle, void *cb_data)
{
foreach_context_s *foreach_context = cb_data;
app_info_h app_info = NULL;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_create(const char *app_id, app_info_h *app_info)
+API int app_info_create(const char *app_id, app_info_h *app_info)
{
pkgmgrinfo_pkginfo_h pkginfo = NULL;
pkgmgrinfo_appinfo_h appinfo = NULL;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_destroy(app_info_h app_info)
+API int app_info_destroy(app_info_h app_info)
{
if (app_info == NULL)
{
return APP_MANAGER_ERROR_NONE;
}
-int app_info_get_app_id(app_info_h app_info, char **app_id)
+API int app_info_get_app_id(app_info_h app_info, char **app_id)
{
char *app_id_dup;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_get_exec(app_info_h app_info, char **exec)
+API int app_info_get_exec(app_info_h app_info, char **exec)
{
char *val;
char *app_exec_dup;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_get_label(app_info_h app_info, char **label)
+API int app_info_get_label(app_info_h app_info, char **label)
{
char *val;
char *app_label_dup;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_get_localed_label(const char *app_id, const char *locale, char **label)
+API int app_info_get_localed_label(const char *app_id, const char *locale, char **label)
{
char *val;
char *app_label_dup;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_get_icon(app_info_h app_info, char **path)
+API int app_info_get_icon(app_info_h app_info, char **path)
{
char *val;
char *app_icon_dup;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_get_package(app_info_h app_info, char **package)
+API int app_info_get_package(app_info_h app_info, char **package)
{
char *val;
char *app_package_dup;
return APP_MANAGER_ERROR_NONE;
}
-
-int app_info_get_type(app_info_h app_info, char **type)
+API int app_info_get_type(app_info_h app_info, char **type)
{
char *val;
char *app_type_dup;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_foreach_metadata(app_info_h app_info, app_info_metadata_cb callback, void *user_data)
+API int app_info_foreach_metadata(app_info_h app_info, app_info_metadata_cb callback, void *user_data)
{
int retval = 0;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_is_nodisplay(app_info_h app_info, bool *nodisplay)
+API int app_info_is_nodisplay(app_info_h app_info, bool *nodisplay)
{
bool val;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_is_enabled(app_info_h app_info, bool *enabled)
+API int app_info_is_enabled(app_info_h app_info, bool *enabled)
{
bool val;
}
-int app_info_is_equal(app_info_h lhs, app_info_h rhs, bool *equal)
+API int app_info_is_equal(app_info_h lhs, app_info_h rhs, bool *equal)
{
if (lhs == NULL || rhs == NULL || equal == NULL)
{
return APP_MANAGER_ERROR_NONE;
}
-int app_info_is_onboot(app_info_h app_info, bool *onboot)
+API int app_info_is_onboot(app_info_h app_info, bool *onboot)
{
bool val;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_is_preload(app_info_h app_info, bool *preload)
+API int app_info_is_preload(app_info_h app_info, bool *preload)
{
bool val;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_clone(app_info_h *clone, app_info_h app_info)
+API int app_info_clone(app_info_h *clone, app_info_h app_info)
{
int retval;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_filter_create(app_info_filter_h *handle)
+API int app_info_filter_create(app_info_filter_h *handle)
{
int retval = 0;
app_info_filter_h filter_created = NULL;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_filter_destroy(app_info_filter_h handle)
+API int app_info_filter_destroy(app_info_filter_h handle)
{
int retval = 0;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_filter_add_bool(app_info_filter_h handle, const char *property, const bool value)
+API int app_info_filter_add_bool(app_info_filter_h handle, const char *property, const bool value)
{
int retval = 0;
char *converted_property = NULL;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_filter_add_string(app_info_filter_h handle, const char *property, const char *value)
+API int app_info_filter_add_string(app_info_filter_h handle, const char *property, const char *value)
{
int retval = 0;
char *converted_property = NULL;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_filter_count_appinfo(app_info_filter_h handle, int *count)
+API int app_info_filter_count_appinfo(app_info_filter_h handle, int *count)
{
int retval = 0;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_filter_foreach_appinfo(app_info_filter_h handle, app_info_filter_cb callback, void * user_data)
+API int app_info_filter_foreach_appinfo(app_info_filter_h handle, app_info_filter_cb callback, void * user_data)
{
int retval = 0;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_metadata_filter_create(app_info_metadata_filter_h *handle)
+API int app_info_metadata_filter_create(app_info_metadata_filter_h *handle)
{
int retval = 0;
app_info_metadata_filter_h filter_created = NULL;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_metadata_filter_destroy(app_info_metadata_filter_h handle)
+API int app_info_metadata_filter_destroy(app_info_metadata_filter_h handle)
{
int retval = 0;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_metadata_filter_add(app_info_metadata_filter_h handle, const char *key, const char *value)
+API int app_info_metadata_filter_add(app_info_metadata_filter_h handle, const char *key, const char *value)
{
int retval = 0;
return APP_MANAGER_ERROR_NONE;
}
-int app_info_metadata_filter_foreach(app_info_metadata_filter_h handle, app_info_filter_cb callback, void *user_data)
+API int app_info_metadata_filter_foreach(app_info_metadata_filter_h handle, app_info_filter_cb callback, void *user_data)
{
int retval = 0;
return error;
}
-
-int app_manager_set_app_context_event_cb(app_manager_app_context_event_cb callback, void *user_data)
+API int app_manager_set_app_context_event_cb(app_manager_app_context_event_cb callback, void *user_data)
{
int retval = app_context_set_event_cb(callback, user_data);
}
}
-void app_manager_unset_app_context_event_cb(void)
+API void app_manager_unset_app_context_event_cb(void)
{
app_context_unset_event_cb();
}
-int app_manager_foreach_app_context(app_manager_app_context_cb callback, void *user_data)
+API int app_manager_foreach_app_context(app_manager_app_context_cb callback, void *user_data)
{
int retval = app_context_foreach_app_context(callback, user_data);
}
}
-int app_manager_get_app_context(const char *app_id, app_context_h *app_context)
+API int app_manager_get_app_context(const char *app_id, app_context_h *app_context)
{
int retval = app_context_get_app_context(app_id, app_context);
}
}
-int app_manager_resume_app(app_context_h app_context)
+API int app_manager_resume_app(app_context_h app_context)
{
char *app_id;
int retval;
return APP_MANAGER_ERROR_NONE;
}
-int app_manager_foreach_app_info(app_manager_app_info_cb callback, void *user_data)
+API int app_manager_foreach_app_info(app_manager_app_info_cb callback, void *user_data)
{
int retval;
}
}
-int app_manager_get_app_info(const char *app_id, app_info_h *app_info)
+API int app_manager_get_app_info(const char *app_id, app_info_h *app_info)
{
int retval;
}
}
-int app_manager_get_app_id(pid_t pid, char **app_id)
+API int app_manager_get_app_id(pid_t pid, char **app_id)
{
char buffer[256] = {0, };
char *app_id_dup = NULL;
}
-int app_manager_terminate_app(app_context_h app_context)
+API int app_manager_terminate_app(app_context_h app_context)
{
int retval;
pid_t pid = 0;
return APP_MANAGER_ERROR_NONE;
}
-int app_manager_is_running(const char *app_id, bool *running)
+API int app_manager_is_running(const char *app_id, bool *running)
{
if (app_id == NULL)
{
return APP_MANAGER_ERROR_NONE;
}
-int app_manager_open_app(const char *app_id)
+API int app_manager_open_app(const char *app_id)
{
int retval;
retval = aul_open_app(app_id);
return APP_MANAGER_ERROR_NONE;
}
-int app_manager_get_shared_data_path(const char *app_id, char **path)
+API int app_manager_get_shared_data_path(const char *app_id, char **path)
{
int r;
int retval = aul_get_app_shared_data_path_by_appid(app_id, path);
return r;
}
-int app_manager_get_shared_resource_path(const char *app_id, char **path)
+API int app_manager_get_shared_resource_path(const char *app_id, char **path)
{
int r;
int retval = aul_get_app_shared_resource_path_by_appid(app_id, path);
return r;
}
-int app_manager_get_shared_trusted_path(const char *app_id, char **path)
+API int app_manager_get_shared_trusted_path(const char *app_id, char **path)
{
int r;
int retval = aul_get_app_shared_trusted_path_by_appid(app_id, path);
return r;
}
-int app_manager_get_external_shared_data_path(const char *app_id, char **path)
+API int app_manager_get_external_shared_data_path(const char *app_id, char **path)
{
int r;
int retval = aul_get_app_external_shared_data_path_by_appid(app_id, path);