summaryrefslogtreecommitdiffstats
path: root/src/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/types.h b/src/types.h
index 5ba6481..edc84f8 100644
--- a/src/types.h
+++ b/src/types.h
@@ -90,12 +90,16 @@ typedef enum fastd_task_type {
TASK_TYPE_UNSPEC = 0, /**< Unspecified task type */
TASK_TYPE_MAINTENANCE, /**< Scheduled maintenance */
TASK_TYPE_HANDSHAKE, /**< Scheduled handshake */
+ TASK_TYPE_PEER, /**< Peer maintenance */
} fastd_task_type_t;
/** A timestamp used as a timeout */
typedef int64_t fastd_timeout_t;
+/** Invalid timestamp */
+static const fastd_timeout_t fastd_timeout_inv = INT64_MAX;
+
typedef struct fastd_buffer fastd_buffer_t;
typedef struct fastd_poll_fd fastd_poll_fd_t;