From 5c3f973f2c140162ed58884b8b0ee5f1e21457e1 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Fri, 23 Mar 2018 15:46:38 +0100 Subject: [PATCH] document dice options --- lib/dice.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/dice.h b/lib/dice.h index d981a11..6a00604 100644 --- a/lib/dice.h +++ b/lib/dice.h @@ -36,8 +36,22 @@ typedef struct { } dice_result_t; typedef enum { + /* The amount of dice to roll. + * get: uint32_t + * set: uint32_t * + */ DICEOPTION_AMOUNT = 0, + + /* The sides the dice have. + * get: uint32_t + * set: uint32_t * + */ DICEOPTION_SIDES, + + /* The error that as occoured when parsing dice strings. + * get: char ** + * set: char const * + */ DICEOPTION_ERROR, } dice_option_t;