Changeset 33116 in vbox for trunk/src/VBox/GuestHost/OpenGL/util
- Timestamp:
- Oct 13, 2010 9:06:35 PM (14 years ago)
- Location:
- trunk/src/VBox/GuestHost/OpenGL/util
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/util/net.c
r21523 r33116 56 56 int use_tcscomm; 57 57 int use_hgcm; 58 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 59 int use_hgsmi; 60 #endif 58 61 59 62 int num_clients; /* total number of clients (unused?) */ … … 109 112 else if (!crStrcmp(protocol, "vboxhgcm")) 110 113 { 111 cr_net.use_hgcm++; 112 crVBoxHGCMInit(cr_net.recv_list, cr_net.close_list, mtu); 113 crVBoxHGCMConnection(conn); 114 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 115 /* for now just use hgcm protocol name 116 * since we still partially use HGCM and have HGCM backend on the host side */ 117 if(crVBoxHGSMIInit(cr_net.recv_list, cr_net.close_list, mtu)) 118 { 119 cr_net.use_hgsmi++; 120 crVBoxHGSMIConnection(conn); 121 } 122 else 123 # endif /* # #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) */ 124 { 125 cr_net.use_hgcm++; 126 crVBoxHGCMInit(cr_net.recv_list, cr_net.close_list, mtu); 127 crVBoxHGCMConnection(conn); 128 } 114 129 } 115 130 #endif … … 433 448 cr_net.use_hgcm = 0; 434 449 cr_net.num_clients = 0; 450 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 451 cr_net.use_hgsmi = 0; 452 #endif 435 453 #ifdef CHROMIUM_THREADSAFE 436 454 crInitMutex(&cr_net.mutex); … … 498 516 #endif 499 517 518 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 519 if (cr_net.use_hgsmi) 520 crVBoxHGSMITearDown(); 521 #endif 500 522 /* Note, other protocols used by chromium should free up stuff too, 501 523 * but VBox doesn't use them, so no other checks. … … 537 559 if ( c ) return c; 538 560 561 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 562 c = crVBoxHGSMIDump( num ); 563 if ( c ) return c; 564 #endif 539 565 #ifdef VBOX_WITH_HGCM 540 566 c = crVBoxHGCMDump( num ); … … 1239 1265 if ( cr_net.use_tcpip ) 1240 1266 found_work += crTCPIPRecv(); 1267 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 1268 if (cr_net.use_hgsmi) 1269 found_work += crVBoxHGSMIRecv(); 1270 #endif 1241 1271 #ifdef VBOX_WITH_HGCM 1242 1272 if ( cr_net.use_hgcm ) -
trunk/src/VBox/GuestHost/OpenGL/util/net_internals.h
r15532 r33116 97 97 extern void crVBoxHGCMTearDown(void); 98 98 #endif 99 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 100 extern bool crVBoxHGSMIInit( CRNetReceiveFuncList *rfl, CRNetCloseFuncList *cfl, unsigned int mtu ); 101 extern void crVBoxHGSMIConnection( CRConnection *conn ); 102 extern int crVBoxHGSMIRecv( void ); 103 extern CRConnection** crVBoxHGSMIDump( int *num ); 104 extern void crVBoxHGSMITearDown(void); 105 #endif /* #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) */ 99 106 100 107 /*
Note:
See TracChangeset
for help on using the changeset viewer.