@@ -51,22 +51,24 @@ typedef unsigned char snow_id_binary_t[16];
5151 * sequence_id is incremented as many times as the function is called within the
5252 * same timestamp.
5353 *
54- * @arg snowid - If able to generate an id, set the value of id to `snow_id`.
55- * @return true if successfully able to generate an id, false if not.
54+ * @param snowid - If able to generate an id, set the value of id to `snow_id`.
55+ * @return bool - true if successfully able to generate an id, false if not.
5656 */
5757bool snow_get_id (snow_id_t * snowid );
5858
5959/**
6060 * Dump snow state and config to stdout for debugging.
61- * @arg stream - any file descriptor (stdout if NULL)
61+ *
62+ * @param stream - any file descriptor (stdout if NULL)
63+ * @return void
6264 */
6365void snow_dump (FILE * stream );
6466
6567/**
6668 * Initializes the snowid engine with the config. It has to be called only once before
6769 * calling any other API functions.
6870 *
69- * @arg config - The snowid configuration
71+ * @param config - The snowid configuration
7072 * @return void
7173 */
7274void snow_init (snow_config_t * config );
@@ -75,7 +77,7 @@ void snow_init(snow_config_t *config);
7577 * Deinitializes the snowid engine. It has to be called only once at the end
7678 * and no other API functions should be called after it except snow_init().
7779 *
78- * @arg void
80+ * @param void
7981 * @return void
8082 */
8183void snow_shutdown (void );
@@ -86,7 +88,7 @@ void snow_shutdown(void);
8688 * <unix timestamp (64 bits) + MAC address (48 bits) + sequence number (16 bits)>
8789 *
8890 * @param snowid_as_bin - set to snowid as binary
89- * @return true if success, else false.
91+ * @return bool - true if success, else false.
9092*/
9193bool snow_get_id_as_binary (snow_id_binary_t snowid_as_bin );
9294
@@ -95,6 +97,7 @@ bool snow_get_id_as_binary(snow_id_binary_t snowid_as_bin);
9597 *
9698 * @param snowid_as_bin - set the converted snowid as binary
9799 * @param snowid - pass in already generated snowid
100+ * @return bool - true if success, else false.
98101*/
99102bool snow_id_convert (snow_id_binary_t snowid_as_bin , const snow_id_t * snowid );
100103
0 commit comments