Merge pull request #4630 from BrzVlad/feature-valloc-limit
[mono-project.git] / mono / utils / mono-networkinterfaces.h
blobb2765a49d1b89df41feb5e9267021fc8333d45a8
1 /**
2 * \file
3 */
5 #ifndef __MONO_NETWORK_INTERFACES_H__
6 #define __MONO_NETWORK_INTERFACES_H__
7 /*
8 * Utility functions to access network information.
9 */
11 #include <glib.h>
12 #include <mono/utils/mono-compiler.h>
14 /* never remove or reorder these enums values: they are used in corlib/System */
16 typedef enum {
17 MONO_NETWORK_BYTESREC,
18 MONO_NETWORK_BYTESSENT,
19 MONO_NETWORK_BYTESTOTAL
20 } MonoNetworkData;
22 typedef enum {
23 MONO_NETWORK_ERROR_NONE, /* no error happened */
24 MONO_NETWORK_ERROR_NOT_FOUND, /* adapter name invalid */
25 MONO_NETWORK_ERROR_OTHER
26 } MonoNetworkError;
28 gpointer *mono_networkinterface_list (int *size);
29 gint64 mono_network_get_data (char* name, MonoNetworkData data, MonoNetworkError *error);
31 #endif /* __MONO_NETWORK_INTERFACES_H__ */