routeros_api.h   routeros_api.h 
skipping to change at line 192 skipping to change at line 192
}; };
/* Callback function */ /* Callback function */
typedef int (*ros_registration_table_handler_t) (ros_connection_t *c, typedef int (*ros_registration_table_handler_t) (ros_connection_t *c,
const ros_registration_table_t *r, void *user_data); const ros_registration_table_t *r, void *user_data);
int ros_registration_table (ros_connection_t *c, int ros_registration_table (ros_connection_t *c,
ros_registration_table_handler_t handler, void *user_data); ros_registration_table_handler_t handler, void *user_data);
/* }}} /interface/wireless/registration-table */ /* }}} /interface/wireless/registration-table */
/* High-level function for accessing /system/resource {{{ */
struct ros_system_resource_s;
typedef struct ros_system_resource_s ros_system_resource_t;
struct ros_system_resource_s
{
uint64_t uptime;
const char *version;
const char *architecture_name;
const char *board_name;
const char *cpu_model;
unsigned int cpu_count;
unsigned int cpu_load;
uint64_t cpu_frequency;
uint64_t free_memory;
uint64_t total_memory;
uint64_t free_hdd_space;
uint64_t total_hdd_space;
uint64_t write_sect_since_reboot;
uint64_t write_sect_total;
uint64_t bad_blocks;
};
/* Callback function */
typedef int (*ros_system_resource_handler_t) (ros_connection_t *c,
const ros_system_resource_t *r, void *user_data);
int ros_system_resource (ros_connection_t *c,
ros_system_resource_handler_t handler, void *user_data);
/* }}} /system/resource */
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* ROUTEROS_API_H */ #endif /* ROUTEROS_API_H */
/* vim: set ts=2 sw=2 noet fdm=marker : */ /* vim: set ts=2 sw=2 noet fdm=marker : */
 End of changes. 1 change blocks. 
0 lines changed or deleted 35 lines changed or added


 routeros_version.h   routeros_version.h 
skipping to change at line 30 skipping to change at line 30
**/ **/
#ifndef ROUTEROS_VERSION_H #ifndef ROUTEROS_VERSION_H
#define ROUTEROS_VERSION_H 1 #define ROUTEROS_VERSION_H 1
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#define ROS_VERSION_MAJOR 1 #define ROS_VERSION_MAJOR 1
#define ROS_VERSION_MINOR 0 #define ROS_VERSION_MINOR 1
#define ROS_VERSION_PATCH 1 #define ROS_VERSION_PATCH 0
#define ROS_VERSION_STRING "1.0.1" #define ROS_VERSION_STRING "1.1.0"
#define ROS_VERSION_ENCODE(major, minor, patch) \ #define ROS_VERSION_ENCODE(major, minor, patch) \
((major) * 10000 + (minor) * 100 + (patch)) ((major) * 10000 + (minor) * 100 + (patch))
#define ROS_VERSION \ #define ROS_VERSION \
ROS_VERSION_ENCODE(ROS_VERSION_MAJOR, ROS_VERSION_MINOR, ROS_VERSION _PATCH) ROS_VERSION_ENCODE(ROS_VERSION_MAJOR, ROS_VERSION_MINOR, ROS_VERSION _PATCH)
int ros_version (void); int ros_version (void);
const char *ros_version_string (void); const char *ros_version_string (void);
 End of changes. 2 change blocks. 
3 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/