medium sized dollop
[carveJwlIkooP6JGAAIwe30JlM.git] / network.h
index a9b5c8f3423b79093053abca15af6ddba098a361..42bee347766226016a3b85b522a437062ecf21e1 100644 (file)
--- a/network.h
+++ b/network.h
 #define SR_USE_LOCALHOST
 
 /* Call it at start; Connects us to the gameserver */
-static void network_init(void);
+static int network_init(void);
 
 /* Run this from main loop */
 static void network_update(void);
 
 /* Call it at shutdown */
-static void network_end(void);
+static void network_end(void*_);
 
 /* 
  * Can buffer up a bunch of these by calling many times, they will be
@@ -320,7 +320,7 @@ static void network_update(void)
          }
          else
          {
-            vg_log( "Not making remote connection; app ticket not gotten\n" );
+            vg_low( "Not making remote connection; app ticket not gotten\n" );
          }
       }
 
@@ -334,7 +334,7 @@ static void network_update(void)
    }
 }
 
-static void network_init(void)
+static int network_init(void)
 {
    if( steam_ready )
    {
@@ -342,9 +342,11 @@ static void network_init(void)
                                on_server_connect_status );
       request_auth_ticket();
    }
+
+   return 1;
 }
 
-static void network_end(void)
+static void network_end(void*_)
 {
    /* TODO: Fire off any buffered highscores that need to be setn */
    if( cremote_state == k_ESteamNetworkingConnectionState_Connected ||
@@ -357,9 +359,9 @@ static void network_end(void)
 
 #else /* SR_NETWORKED */
 
-static void network_init(void){}
+static int network_init(void){ return 1; }
 static void network_update(void){}
-static void network_end(void){}
+static void network_end(void*_){}
 
 #endif /* SR_NETWORKED */
 #endif /* NETWORK_H */