Change-Id: Icd6c565e2306396af726a77f56515619c1c2bf9d
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
int proc_debug_enabled(void);
+GSList *proc_app_list_open(void);
+void proc_app_list_close(void);
+
+#define PAL_INIT_VALUE (GSList*)-1
+
+static inline void cleanup_proc_app_list_close_func(GSList **l)
+{
+ if (*l != PAL_INIT_VALUE)
+ proc_app_list_close();
+}
+
+#define _cleanup_app_list_close_ __attribute__((cleanup(cleanup_proc_app_list_close_func)))
+
#endif /* __PROC_COMMON_H__ */
int proc_get_state(int type, pid_t pid, char *buf, int len);
-GSList *proc_app_list_open(void);
-void proc_app_list_close(void);
-
-#define PAL_INIT_VALUE (GSList*)-1
-
-static inline void cleanup_proc_app_list_close_func(GSList **l)
-{
- if (*l != PAL_INIT_VALUE)
- proc_app_list_close();
-}
-
-#define _cleanup_app_list_close_ __attribute__((cleanup(cleanup_proc_app_list_close_func)))
-
#endif /*__PROC_MAIN_H__ */