+/*
+
+ silcprotocol.h
+
+ Author: Pekka Riikonen <priikone@silcnet.org>
+
+ Copyright (C) 1997 - 2000 Pekka Riikonen
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+*/
+
/****h* silccore/silcprotocol.h
- *
- * NAME
- *
- * silcprotocol.h
- *
- * COPYRIGHT
- *
- * Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
- *
- * Copyright (C) 1997 - 2000 Pekka Riikonen
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
*
* DESCRIPTION
*
*
* SYNOPSIS
*
- * void silc_protocol_execute(SilcProtocol protocol, void *timeout_queue,
+ * void silc_protocol_execute(SilcProtocol protocol, SilcSchedule schedule,
* long secs, long usecs);
*
* DESCRIPTION
* Executes the protocol. This calls the state that has been set.
* The state must be set before calling this function. This is then
* also used to call always the next state after changing the state
- * of the protocol. The `timeout_queue' is a timeout task queue from
- * the application. It is passed to the protocol callback functions.
- * The `secs' and `usecs' are the timeout before the protocol is
- * executed. If both zero the protocol is executed immediately.
+ * of the protocol. The `schedule' is the application's scheduler.
+ * It is passed to the protocol callback functions. The `secs' and
+ * `usecs' are the timeout before the protocol is executed. If both
+ * zero the protocol is executed immediately.
*
***/
-void silc_protocol_execute(SilcProtocol protocol, void *timeout_queue,
+void silc_protocol_execute(SilcProtocol protocol, SilcSchedule schedule,
long secs, long usecs);
/****f* silccore/SilcProtocolAPI/silc_protocol_execute_final
* SYNOPSIS
*
* void
- * silc_protocol_execute_final(SilcProtocol protocol, void *timeout_queue);
+ * silc_protocol_execute_final(SilcProtocol protocol,
+ * SilcSchedule schedule);
*
* DESCRIPTION
*
- * Executes the final callback for the protocol. The `timeout_queue' is
- * a timeout task queue from the application. It is passed to the
- * protocol callback functions. The final callback is executed
- * immediately.
+ * Executes the final callback for the protocol. The `schedule' is
+ * the application's scheduler.. It is passed to the protocol callback
+ * functions. The final callback is executed immediately.
*
***/
-void silc_protocol_execute_final(SilcProtocol protocol, void *timeout_queue);
+void silc_protocol_execute_final(SilcProtocol protocol, SilcSchedule schedule);
/****f* silccore/SilcProtocolAPI/silc_protocol_cancel
*
* SYNOPSIS
*
- * void silc_protocol_cancel(SilcProtocol protocol, void *timeout_queue);
+ * void silc_protocol_cancel(SilcProtocol protocol, SilcSchedule schedule);
*
* DESCRIPTION
*
* has elapsed the protocol callback won't be called.
*
***/
-void silc_protocol_cancel(SilcProtocol protocol, void *timeout_queue);
+void silc_protocol_cancel(SilcProtocol protocol, SilcSchedule schedule);
#endif