X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccore%2Fsilcprotocol.h;fp=lib%2Fsilccore%2Fsilcprotocol.h;h=e7bb36576bbfae33abcc3f891d6c5615d9f516d2;hb=0d83f43ff41af4950a7cda27a59fce6f8973311e;hp=197307c225306f0db706d018fd7db7711710c827;hpb=0054e78175812ad80984edf4bf39a88fb7387132;p=silc.git diff --git a/lib/silccore/silcprotocol.h b/lib/silccore/silcprotocol.h index 197307c2..e7bb3657 100644 --- a/lib/silccore/silcprotocol.h +++ b/lib/silccore/silcprotocol.h @@ -297,7 +297,7 @@ void silc_protocol_free(SilcProtocol protocol); * * SYNOPSIS * - * void silc_protocol_execute(SilcProtocol protocol, void *timeout_queue, + * void silc_protocol_execute(SilcProtocol protocol, SilcSchedule schedule, * long secs, long usecs); * * DESCRIPTION @@ -305,13 +305,13 @@ void silc_protocol_free(SilcProtocol protocol); * 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 @@ -319,23 +319,23 @@ void silc_protocol_execute(SilcProtocol protocol, void *timeout_queue, * 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 * @@ -345,6 +345,6 @@ void silc_protocol_execute_final(SilcProtocol protocol, void *timeout_queue); * 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