X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain.c;h=a0d6dccaf8e9971393f211c0dcc38242547aa5d3;hb=6c3403d470cd185d209de32d14f5272e87b4ca38;hp=3f844abe128f6e05e6030960ac2f88bb9429c0bd;hpb=8a84fa6dd3a3cf2001f15c9426bd5055491589cb;p=routeros-api.git diff --git a/src/main.c b/src/main.c index 3f844ab..a0d6dcc 100644 --- a/src/main.c +++ b/src/main.c @@ -673,6 +673,13 @@ int mt_reply_num (const mt_reply_t *r) /* {{{ */ return (ret); } /* }}} int mt_reply_num */ +const char *mt_reply_status (const mt_reply_t *r) /* {{{ */ +{ + if (r == NULL) + return (NULL); + return (r->status); +} /* }}} char *mt_reply_status */ + const char *mt_reply_param_key_by_index (const mt_reply_t *r, /* {{{ */ unsigned int index) {