From: Florian Forster Date: Thu, 26 Nov 2009 22:10:48 +0000 (+0100) Subject: src/routeros_api.h: Make next pointers `const'. X-Git-Tag: librouteros-0.2.0~11 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a118e47dc674ac8789629705da1fd9eb44d631f8;p=routeros-api.git src/routeros_api.h: Make next pointers `const'. --- diff --git a/src/routeros_api.h b/src/routeros_api.h index 8c6b823..73b6583 100644 --- a/src/routeros_api.h +++ b/src/routeros_api.h @@ -102,15 +102,15 @@ struct ros_interface_s _Bool enabled; /* Next interface */ - ros_interface_t *next; + const ros_interface_t *next; }; /* Callback function */ -typedef int (*ros_interface_handler) (ros_connection_t *c, +typedef int (*ros_interface_handler_t) (ros_connection_t *c, const ros_interface_t *i, void *user_data); int ros_interface (ros_connection_t *c, - ros_interface_handler handler, void *user_data); + ros_interface_handler_t handler, void *user_data); /* }}} /interface */ /* High-level function for accessing /interface/wireless/registration-table {{{ */ @@ -149,15 +149,15 @@ struct ros_registration_table_s double tx_ccq; /* Next interface */ - ros_registration_table_t *next; + const ros_registration_table_t *next; }; /* Callback function */ -typedef int (*ros_registration_table_handler) (ros_connection_t *c, +typedef int (*ros_registration_table_handler_t) (ros_connection_t *c, const ros_registration_table_t *r, void *user_data); int ros_registration_table (ros_connection_t *c, - ros_registration_table_handler handler, void *user_data); + ros_registration_table_handler_t handler, void *user_data); /* }}} /interface/wireless/registration-table */ #ifdef __cplusplus