X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccore%2Fsilcpacket.h;h=240c446d97ad9cd720918cc06daa019a2c7ad92b;hb=a063516c64ad520c0e80ba4420dd604d8bb90fdf;hp=5dfcdc93edea59f70f69c4b473186c791e41fd8e;hpb=f16ef7358c39162050c62c59c55dd02b8279790f;p=silc.git diff --git a/lib/silccore/silcpacket.h b/lib/silccore/silcpacket.h index 5dfcdc93..240c446d 100644 --- a/lib/silccore/silcpacket.h +++ b/lib/silccore/silcpacket.h @@ -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