File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -2461,6 +2461,26 @@ void networkUserAdd(NETCONSUMER_t consumer,
2461
2461
networkConsumerIndexLast[consumer] = index;
2462
2462
}
2463
2463
2464
+ // ----------------------------------------
2465
+ // Get the network user bit mask
2466
+ // ----------------------------------------
2467
+ NETCONSUMER_MASK_t networkUserBits (NetIndex_t index)
2468
+ {
2469
+ // Validate the index
2470
+ networkValidateIndex (index);
2471
+
2472
+ // Return the consumer bits
2473
+ return netIfUsers[index];
2474
+ }
2475
+
2476
+ // ----------------------------------------
2477
+ // Count the number of network users
2478
+ // ----------------------------------------
2479
+ int networkUserCount (NetIndex_t index)
2480
+ {
2481
+ return networkConsumerCountBits (networkUserBits (index));
2482
+ }
2483
+
2464
2484
// ----------------------------------------
2465
2485
// Display the network interface users
2466
2486
// ----------------------------------------
You can’t perform that action at this time.
0 commit comments