summaryrefslogtreecommitdiffstats
path: root/darwin
diff options
context:
space:
mode:
Diffstat (limited to 'darwin')
-rw-r--r--darwin/Platform.c11
-rw-r--r--darwin/Platform.h5
2 files changed, 16 insertions, 0 deletions
diff --git a/darwin/Platform.c b/darwin/Platform.c
index 99787a27..26bcbad2 100644
--- a/darwin/Platform.c
+++ b/darwin/Platform.c
@@ -315,3 +315,14 @@ void Platform_getDiskIO(unsigned long int *bytesRead, unsigned long int *bytesWr
// TODO
*bytesRead = *bytesWrite = *msTimeSpend = 0;
}
+
+void Platform_getNetworkIO(unsigned long int *bytesReceived,
+ unsigned long int *packetsReceived,
+ unsigned long int *bytesTransmitted,
+ unsigned long int *packetsTransmitted) {
+ // TODO
+ *bytesReceived = 0;
+ *packetsReceived = 0;
+ *bytesTransmitted = 0;
+ *packetsTransmitted = 0;
+}
diff --git a/darwin/Platform.h b/darwin/Platform.h
index 9b7a324b..d953b51c 100644
--- a/darwin/Platform.h
+++ b/darwin/Platform.h
@@ -50,4 +50,9 @@ char* Platform_getProcessEnv(pid_t pid);
void Platform_getDiskIO(unsigned long int *bytesRead, unsigned long int *bytesWrite, unsigned long int *msTimeSpend);
+void Platform_getNetworkIO(unsigned long int *bytesReceived,
+ unsigned long int *packetsReceived,
+ unsigned long int *bytesTransmitted,
+ unsigned long int *packetsTransmitted);
+
#endif