X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilccore%2Fsilcstatus.h;h=3b5c7cd0ec648fd97cee67c6fbfd0cfada70ec17;hp=4564a55dffe9e7cf37347516d663811b328a77fd;hb=413da0f8686910f5e627393157566ae729ca99c4;hpb=050bd9d9e5d843220f3f393a18ab5011622237b9 diff --git a/lib/silccore/silcstatus.h b/lib/silccore/silcstatus.h index 4564a55d..3b5c7cd0 100644 --- a/lib/silccore/silcstatus.h +++ b/lib/silccore/silcstatus.h @@ -1,10 +1,10 @@ /* - silcstatus.h + silcstatus.h Author: Pekka Riikonen - Copyright (C) 2002 Pekka Riikonen + Copyright (C) 2002 - 2003 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 @@ -36,7 +36,7 @@ /****d* silccore/StatusTypes/SilcStatus * * NAME - * + * * typedef SilcUInt8 SilcStatus * * DESCRIPTION @@ -106,4 +106,24 @@ typedef SilcUInt8 SilcStatus; #define SILC_STATUS_IS_ERROR(status) (status >= SILC_STATUS_ERR_NO_SUCH_NICK) +/****f* silccore/SilcStatusTypes/silc_status_get_args + * + * SYNOPSIS + * + * SilcUInt32 silc_status_get_args(SilcStatus status, + * SilcArgumentPayload args, + * void **ret_arg1, **ret_arg2); + * + * DESCRIPTION + * + * Parses and returns the arguments from the `args' by the status type + * indicated by `status'. Returns the number of arguments (0, 1 or 2) + * parsed. The caller must free with silc_free the returned arguments. + * + ***/ +SilcUInt32 silc_status_get_args(SilcStatus status, + SilcArgumentPayload args, + void **ret_arg1, void **ret_arg2); + + #endif /* SILCSTATUS_H */