Added silc_packet_error_string.
[silc.git] / lib / silccore / silcpacket.h
index 5dfcdc93edea59f70f69c4b473186c791e41fd8e..240c446d97ad9cd720918cc06daa019a2c7ad92b 100644 (file)
@@ -198,6 +198,9 @@ typedef struct SilcPacketStruct {
  *    from the actual stream.  It can retrieve the underlaying stream from
  *    the packet stream by calling silc_packet_stream_get_stream function.
  *
+ *    You may retrieve string version of the SilcPacketError by calling
+ *    silc_packet_error_string.
+ *
  * SOURCE
  */
 typedef enum {
@@ -377,6 +380,19 @@ silc_packet_engine_start(SilcRng rng, SilcBool router,
  ***/
 void silc_packet_engine_stop(SilcPacketEngine engine);
 
+/****f* silccore/SilcPacketAPI/silc_packet_error_string
+ *
+ * SYNOPSIS
+ *
+ *    const char *silc_packet_error_string(SilcPacketError error);
+ *
+ * DESCRIPTION
+ *
+ *    Return the packet error as string.
+ *
+ ***/
+const char *silc_packet_error_string(SilcPacketError error);
+
 /****f* silccore/SilcPacketAPI/silc_packet_engine_get_streams
  *
  * SYNOPSIS