projects
/
routeros-api.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed all prefixes: s/\<mt_/ros_/g
[routeros-api.git]
/
src
/
routeros_api.h
diff --git
a/src/routeros_api.h
b/src/routeros_api.h
index
63fd7d9
..
558bbf6
100644
(file)
--- a/
src/routeros_api.h
+++ b/
src/routeros_api.h
@@
-21,43
+21,43
@@
#define ROUTEROS_API_PORT "8728"
#define ROUTEROS_API_PORT "8728"
-struct
mt
_connection_s;
-typedef struct
mt_connection_s mt
_connection_t;
+struct
ros
_connection_s;
+typedef struct
ros_connection_s ros
_connection_t;
-struct
mt
_reply_s;
-typedef struct
mt_reply_s mt
_reply_t;
+struct
ros
_reply_s;
+typedef struct
ros_reply_s ros
_reply_t;
-typedef int (*
mt_reply_handler_t) (mt_connection_t *c, const mt
_reply_t *r,
+typedef int (*
ros_reply_handler_t) (ros_connection_t *c, const ros
_reply_t *r,
void *user_data);
/*
* Connection handling
*/
void *user_data);
/*
* Connection handling
*/
-
mt_connection_t *mt
_connect (const char *node, const char *service,
+
ros_connection_t *ros
_connect (const char *node, const char *service,
const char *username, const char *password);
const char *username, const char *password);
-int
mt_disconnect (mt
_connection_t *con);
+int
ros_disconnect (ros
_connection_t *con);
/*
* Command execution
*/
/*
* Command execution
*/
-int
mt_query (mt
_connection_t *c,
+int
ros_query (ros
_connection_t *c,
const char *command,
size_t args_num, const char * const *args,
const char *command,
size_t args_num, const char * const *args,
-
mt
_reply_handler_t handler, void *user_data);
+
ros
_reply_handler_t handler, void *user_data);
/*
* Reply handling
*/
/*
* Reply handling
*/
-const
mt_reply_t *mt_reply_next (const mt
_reply_t *r);
-int
mt_reply_num (const mt
_reply_t *r);
+const
ros_reply_t *ros_reply_next (const ros
_reply_t *r);
+int
ros_reply_num (const ros
_reply_t *r);
-const char *
mt_reply_status (const mt
_reply_t *r);
+const char *
ros_reply_status (const ros
_reply_t *r);
/* Receiving reply parameters */
/* Receiving reply parameters */
-const char *
mt_reply_param_key_by_index (const mt
_reply_t *r,
+const char *
ros_reply_param_key_by_index (const ros
_reply_t *r,
unsigned int index);
unsigned int index);
-const char *
mt_reply_param_val_by_index (const mt
_reply_t *r,
+const char *
ros_reply_param_val_by_index (const ros
_reply_t *r,
unsigned int index);
unsigned int index);
-const char *
mt_reply_param_val_by_key (const mt
_reply_t *r, const char *key);
+const char *
ros_reply_param_val_by_key (const ros
_reply_t *r, const char *key);
/* vim: set ts=2 sw=2 noet fdm=marker : */
/* vim: set ts=2 sw=2 noet fdm=marker : */