aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libssh/misc.h')
-rw-r--r--include/libssh/misc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libssh/misc.h b/include/libssh/misc.h
index 3ee26a3c..9897c4eb 100644
--- a/include/libssh/misc.h
+++ b/include/libssh/misc.h
@@ -50,6 +50,11 @@ struct ssh_iterator {
const void *data;
};
+struct ssh_timestamp {
+ long seconds;
+ long useconds;
+};
+
struct ssh_list *ssh_list_new(void);
void ssh_list_free(struct ssh_list *list);
struct ssh_iterator *ssh_list_get_iterator(const struct ssh_list *list);
@@ -72,4 +77,8 @@ const void *_ssh_list_pop_head(struct ssh_list *list);
#define ssh_list_pop_head(type, ssh_list)\
((type)_ssh_list_pop_head(ssh_list))
+void ssh_timestamp_init(struct ssh_timestamp *ts);
+int ssh_timeout_elapsed(struct ssh_timestamp *ts, int timeout);
+int ssh_timeout_update(struct ssh_timestamp *ts, int timeout);
+
#endif /* MISC_H_ */