bool -> SilcBool.
[silc.git] / lib / silcclient / client_ops_example.c
index 4fe166a873b54004f30519bb3ffd58b1dfd550ce..526c86e34c59ca79ec6d8dc0fc2a5114371664f2 100644 (file)
@@ -5,7 +5,9 @@
 
    At the end of this file SilcClientOperation structure is defined, and
    it is the one the you will give as an argument to the silc_client_alloc
-   function. See also lib/silcclient/README file, and silcclient.h. */
+   function. See also lib/silcclient/README file, and silcclient.h.
+
+   You may freely use this file in your application. */
 
 
 /* Message sent to the application by library. `conn' associates the
@@ -83,7 +85,7 @@ silc_notify(SilcClient client, SilcClientConnection conn,
 
 static void
 silc_command(SilcClient client, SilcClientConnection conn,
-            SilcClientCommandContext cmd_context, bool success,
+            SilcClientCommandContext cmd_context, SilcBool success,
             SilcCommand command, SilcStatus status)
 {
 
@@ -109,7 +111,7 @@ silc_command(SilcClient client, SilcClientConnection conn,
 
 static void
 silc_command_reply(SilcClient client, SilcClientConnection conn,
-                  SilcCommandPayload cmd_payload, bool success,
+                  SilcCommandPayload cmd_payload, SilcBool success,
                   SilcCommand command, SilcStatus status, ...)
 {
 
@@ -211,7 +213,7 @@ silc_failure(SilcClient client, SilcClientConnection conn,
    silc_client_perform_key_agreement). If TRUE is returned also the
    `completion' and `context' arguments must be set by the application. */
 
-static bool
+static SilcBool
 silc_key_agreement(SilcClient client, SilcClientConnection conn,
                   SilcClientEntry client_entry, const char *hostname,
                   SilcUInt16 port, SilcKeyAgreementCallback *completion,