From 02593d170a7163a141acf6f2f72686a7bdbfb828 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Mon, 27 Aug 2012 20:05:35 +0200 Subject: Added is_process_running Now the source code viewer is launched when not already running (ShelWrite wasn't handling this correctly) --- atari/misc.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'atari/misc.h') diff --git a/atari/misc.h b/atari/misc.h index edd026ba4..612113fc1 100755 --- a/atari/misc.h +++ b/atari/misc.h @@ -39,9 +39,12 @@ /* Modes for find_gui_window: */ #define BY_WINDOM_HANDLE 0x0 #define BY_GEM_HANDLE 0x1 + +typedef int (*scan_process_callback)(int pid, void *data); struct gui_window * find_gui_window( unsigned long, short mode ); -struct gui_window * find_cmp_window( COMPONENT * c ); +struct gui_window * find_cmp_window( COMPONENT * c ); +bool is_process_running(const char * name); OBJECT *get_tree( int idx ); char *get_rsc_string( int idx ); void gem_set_cursor( MFORM_EX * cursor ); -- cgit v1.2.3