expose sigar_net_stat_get now that all platforms implement net_connection_walk
This commit is contained in:
parent
13751fe221
commit
dc6429ad45
@ -824,7 +824,6 @@ JNIEXPORT jobjectArray SIGAR_JNI(Sigar_getNetConnectionList)
|
||||
return connarray;
|
||||
}
|
||||
|
||||
#if defined(__linux__) /* XXX other platforms need sigar_net_connection_walker */
|
||||
JNIEXPORT void SIGAR_JNI(NetStat_nstat)
|
||||
(JNIEnv *env, jobject obj, jobject sigar_obj, jint flags)
|
||||
{
|
||||
@ -859,7 +858,6 @@ JNIEXPORT void SIGAR_JNI(NetStat_nstat)
|
||||
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
JNIEXPORT jstring SIGAR_JNI(NetConnection_getTypeString)
|
||||
(JNIEnv *env, jobject obj)
|
||||
|
@ -761,7 +761,7 @@ sigar_net_connection_list_get(sigar_t *sigar,
|
||||
return status;
|
||||
}
|
||||
#endif
|
||||
#if defined(__linux__) /* XXX need to implement walker on other platforms */
|
||||
|
||||
typedef struct {
|
||||
sigar_net_stat_t *netstat;
|
||||
sigar_cache_t *listen_ports;
|
||||
@ -834,7 +834,7 @@ int sigar_net_stat_get(sigar_t *sigar,
|
||||
|
||||
return status;
|
||||
}
|
||||
#endif
|
||||
|
||||
int sigar_who_list_create(sigar_who_list_t *wholist)
|
||||
{
|
||||
wholist->number = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user