From 822a6516ada0d1b20b1be00d1a531b040504aede Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Wed, 4 Feb 2015 18:04:12 +0900 Subject: Fix implicit declaration warnings add missing declarations Change-Id: I47ba874e922b578b2ab6b0095e62db5740f13025 Signed-off-by: Sangyoon Jang --- am_daemon/amd_status.h | 2 +- am_session_agent/sigchild.h | 1 + include/app_sock.h | 5 +++-- include/launch.h | 3 +++ include/simple_util.h | 1 + 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/am_daemon/amd_status.h b/am_daemon/amd_status.h index d19486b3..7211a270 100644 --- a/am_daemon/amd_status.h +++ b/am_daemon/amd_status.h @@ -30,12 +30,12 @@ int _status_remove_app_info_list(int pid, uid_t uid); int _status_get_app_info_status(int pid); int _status_send_running_appinfo(int fd); int _status_app_is_running(char *appid, uid_t uid); +int _status_app_is_running_v2(uid_t caller_uid, char *appid); int _status_send_running_appinfo_v2(int fd); //depcrecated int _status_get_appid_bypid(int fd, int pid); - //TODO : remove typedef struct _item_pkt_t { diff --git a/am_session_agent/sigchild.h b/am_session_agent/sigchild.h index 0e0ab771..c75bde3a 100644 --- a/am_session_agent/sigchild.h +++ b/am_session_agent/sigchild.h @@ -19,6 +19,7 @@ * */ +#include "launch.h" #include "aul_util.h" #include "app_signal.h" diff --git a/include/app_sock.h b/include/app_sock.h index 20908a3a..dde5b08d 100644 --- a/include/app_sock.h +++ b/include/app_sock.h @@ -83,10 +83,11 @@ int __create_client_sock(int pid); int __app_send_raw(int pid, int cmd, unsigned char *kb_data, int datalen); int __app_send_raw_with_noreply(int pid, int cmd, unsigned char *kb_data, int datalen); int __app_send_raw_with_delay_reply(int pid, int cmd, unsigned char *kb_data, int datalen); +int __app_agent_send_raw(int uid, int cmd, unsigned char *kb_data, int datalen); +int __app_agent_send_raw_with_noreply(int uid, int cmd, unsigned char *kb_data, int datalen); app_pkt_t *__app_recv_raw(int fd, int *clifd, struct ucred *cr); app_pkt_t *__app_send_cmd_with_result(int pid, int cmd, unsigned char *kb_data, int datalen); int __create_agent_client_sock(int uid); - - +int __create_server_sock_by_path(char *path); #endif diff --git a/include/launch.h b/include/launch.h index 4025cde2..2210ef3b 100644 --- a/include/launch.h +++ b/include/launch.h @@ -44,6 +44,9 @@ int aul_launch_app_with_result(const char *pkgname, bundle *kb, void (*cbfunc) (bundle *, int, void *), void *data); +int app_agent_send_cmd(int uid, int cmd, bundle *kb); +int app_agent_send_cmd_with_noreply(int uid, int cmd, bundle *kb); +int app_subapp_terminate_request(void); gboolean __aul_glib_handler(gpointer data); diff --git a/include/simple_util.h b/include/simple_util.h index e0dc4c71..b855b49e 100644 --- a/include/simple_util.h +++ b/include/simple_util.h @@ -78,6 +78,7 @@ int __proc_iter_pgid(int pgid, int (*iterfunc) (int pid, void *priv,uid_t uid), void *priv); char *__proc_get_cmdline_bypid(int pid); char *__proc_get_exe_bypid(int pid); +uid_t __proc_get_usr_bypid(int pid); static inline const char *FILENAME(const char *filename) { -- cgit v1.2.3