* Florian octo Forster <octo at verplant.org>
**/
+#define ROUTEROS_API_PORT "8728"
+
struct mt_connection_s;
typedef struct mt_connection_s mt_connection_t;
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
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 : */