#include "routeros_api.h"
+#if !__GNUC__
+# define __attribute__(x) /**/
+#endif
+
static const char *opt_username = "admin";
static int result_handler (ros_connection_t *c, const ros_reply_t *r, /* {{{ */
if (r == NULL)
return;
- printf ("=== %s ===\n", r->interface);
+ printf ("=== %s / %s ===\n", r->interface, r->radio_name);
+ printf ("Mode: %12s\n",
+ r->ap ? (r->wds ? "AP with WDS" : "Access point") : "Station");
printf ("Rate: %7g Mbps / %7g Mbps\n", r->rx_rate, r->tx_rate);
printf ("Packets: %12"PRIu64" / %12"PRIu64"\n",
r->rx_packets, r->tx_packets);
regtable_dump (r->next);
} /* }}} void regtable_dump */
-static int regtable_handler (ros_connection_t *c, /* {{{ */
- const ros_registration_table_t *r, void *user_data)
+static int regtable_handler (__attribute__((unused)) ros_connection_t *c, /* {{{ */
+ const ros_registration_table_t *r,
+ __attribute__((unused)) void *user_data)
{
regtable_dump (r);
return (0);
interface_dump (i->next);
} /* }}} void interface_dump */
-static int interface_handler (ros_connection_t *c, /* {{{ */
- const ros_interface_t *i, void *user_data)
+static int interface_handler (__attribute__((unused)) ros_connection_t *c, /* {{{ */
+ const ros_interface_t *i,
+ __attribute__((unused)) void *user_data)
{
interface_dump (i);
return (0);