X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frouteros_api.h;h=63fd7d9aa90f3a2babd00b7cd5ff306ba5b5471a;hb=fbcc2929dd72424f0f6fca20a3dc9581817f3b30;hp=070b2eab11f2c366236bd51118844b2de41de905;hpb=c51d83a318374124b877a52cd3f85c173d4bb4a5;p=routeros-api.git diff --git a/src/routeros_api.h b/src/routeros_api.h index 070b2ea..63fd7d9 100644 --- a/src/routeros_api.h +++ b/src/routeros_api.h @@ -43,7 +43,7 @@ int mt_disconnect (mt_connection_t *con); int mt_query (mt_connection_t *c, const char *command, size_t args_num, const char * const *args, - mt_reply_handler_t *handler, void *user_data); + mt_reply_handler_t handler, void *user_data); /* * Reply handling @@ -51,9 +51,13 @@ int mt_query (mt_connection_t *c, const mt_reply_t *mt_reply_next (const mt_reply_t *r); int mt_reply_num (const mt_reply_t *r); +const char *mt_reply_status (const mt_reply_t *r); + /* Receiving reply parameters */ -const char *mt_reply_param_key_by_index (const mt_reply_t *r, unsigned int index); -const char *mt_reply_param_val_by_index (const mt_reply_t *r, unsigned int index); +const char *mt_reply_param_key_by_index (const mt_reply_t *r, + unsigned int index); +const char *mt_reply_param_val_by_index (const mt_reply_t *r, + unsigned int index); const char *mt_reply_param_val_by_key (const mt_reply_t *r, const char *key); /* vim: set ts=2 sw=2 noet fdm=marker : */