4343#include " product.h"
4444
4545// permanent connection variables
46- int monodevelop_port = -1 ;
47- int sdb_fd = -1 ;
48- int profiler_fd = -1 ;
49- int heapshot_fd = -1 ; // this is the socket to write 'heapshot' to to requests heapshots from the profiler
50- int heapshot_port = -1 ;
51- char *profiler_description = NULL ;
46+ static int monodevelop_port = -1 ;
47+ static int sdb_fd = -1 ;
48+ static int heapshot_fd = -1 ; // this is the socket to write 'heapshot' to to requests heapshots from the profiler
49+ static int heapshot_port = -1 ;
50+ static char *profiler_description = NULL ;
5251// old variables
53- int output_port;
54- int debug_port;
55- char *debug_host = NULL ;
52+ static char *debug_host = NULL ;
5653
5754enum DebuggingMode
5855{
7168static DebuggingMode debugging_mode = DebuggingModeWifi;
7269static const char *connection_mode = " default" ; // this is set from the cmd line, can be either 'usb', 'wifi', 'http' or 'none'
7370
71+ extern " C" {
7472void monotouch_connect_usb ();
7573void monotouch_connect_wifi (NSMutableArray *hosts);
7674void xamarin_connect_http (NSMutableArray *hosts);
8078void monotouch_load_profiler ();
8179void monotouch_load_debugger ();
8280bool monotouch_process_connection (int fd);
81+ void monotouch_dump_objc_api (Class klass);
82+ }
8383
8484static struct timeval wait_tv;
8585static struct timespec wait_ts;
@@ -705,7 +705,7 @@ void monotouch_configure_debugging ()
705705 pthread_mutex_unlock (&mutex);
706706}
707707
708- void sdb_connect (const char *address)
708+ static void sdb_connect (const char *address)
709709{
710710 gboolean shaked;
711711
@@ -719,17 +719,17 @@ void sdb_connect (const char *address)
719719 return ;
720720}
721721
722- void sdb_close1 (void )
722+ static void sdb_close1 (void )
723723{
724724 shutdown (sdb_fd, SHUT_RD);
725725}
726726
727- void sdb_close2 (void )
727+ static void sdb_close2 (void )
728728{
729729 shutdown (sdb_fd, SHUT_RDWR);
730730}
731731
732- gboolean send_uninterrupted (int fd, const void *buf, int len)
732+ static gboolean send_uninterrupted (int fd, const void *buf, int len)
733733{
734734 int res;
735735
@@ -740,7 +740,7 @@ gboolean send_uninterrupted (int fd, const void *buf, int len)
740740 return res == len;
741741}
742742
743- int recv_uninterrupted (int fd, void *buf, int len)
743+ static int recv_uninterrupted (int fd, void *buf, int len)
744744{
745745 int res;
746746 int total = 0 ;
@@ -755,7 +755,7 @@ int recv_uninterrupted (int fd, void *buf, int len)
755755 return total;
756756}
757757
758- gboolean sdb_send (void *buf, int len)
758+ static gboolean sdb_send (void *buf, int len)
759759{
760760 gboolean rv;
761761
@@ -771,7 +771,7 @@ gboolean sdb_send (void *buf, int len)
771771}
772772
773773
774- int sdb_recv (void *buf, int len)
774+ static int sdb_recv (void *buf, int len)
775775{
776776 int rv;
777777
@@ -1323,8 +1323,7 @@ int sdb_recv (void *buf, int len)
13231323 profiler_description = strdup (prof);
13241324#else
13251325 use_fd = true ;
1326- profiler_fd = fd;
1327- profiler_description = xamarin_strdup_printf (" %s ,output=#%i " , prof, profiler_fd);
1326+ profiler_description = xamarin_strdup_printf (" %s ,output=#%i " , prof, fd);
13281327#endif
13291328 xamarin_set_gc_pump_enabled (false );
13301329 } else {
@@ -1709,6 +1708,6 @@ int monotouch_debug_connect (NSMutableArray *ips, int debug_port, int output_por
17091708#endif /* TARGET_OS_WATCH && !TARGET_OS_SIMULATOR */
17101709
17111710#else
1712- int fix_ranlib_warning_about_no_symbols_v2 ;
1711+ int xamarin_fix_ranlib_warning_about_no_symbols_v2 ;
17131712#endif /* DEBUG */
17141713
0 commit comments