ike_dpd_t public;
};
-METHOD(task_t, return_need_more, status_t,
- private_ike_dpd_t *this, message_t *message)
-{
- return NEED_MORE;
-}
-
METHOD(task_t, get_type, task_type_t,
private_ike_dpd_t *this)
{
METHOD(task_t, migrate, void,
private_ike_dpd_t *this, ike_sa_t *ike_sa)
{
-
}
METHOD(task_t, destroy, void,
if (initiator)
{
- this->public.task.build = _return_need_more;
+ this->public.task.build = (void*)return_need_more;
this->public.task.process = (void*)return_success;
}
else
{
this->public.task.build = (void*)return_success;
- this->public.task.process = _return_need_more;
+ this->public.task.process = (void*)return_need_more;
}
return &this->public;
/*
- * Copyright (C) 2008-2014 Tobias Brunner
+ * Copyright (C) 2008-2018 Tobias Brunner
* Copyright (C) 2005-2008 Martin Willi
*
* Copyright (C) secunet Security Networks AG
"NEED_MORE",
);
-/**
- * returns FAILED
+/*
+ * Described in header
*/
status_t return_failed()
{
return FAILED;
}
-/**
- * returns SUCCESS
+/*
+ * Described in header
*/
status_t return_success()
{
return SUCCESS;
}
+
+/*
+ * Described in header
+ */
+status_t return_need_more()
+{
+ return NEED_MORE;
+}
/*
- * Copyright (C) 2008-2014 Tobias Brunner
+ * Copyright (C) 2008-2018 Tobias Brunner
* Copyright (C) 2008 Martin Willi
*
* Copyright (C) secunet Security Networks AG
*/
status_t return_success();
+/**
+ * returns NEED_MORE
+ */
+status_t return_need_more();
+
#endif /** STATUS_H_ @} */