]> git.seodisparate.com - UDPConnection/commitdiff
Add docs to HashMap
authorStephen Seo <seo.disparate@gmail.com>
Thu, 7 Feb 2019 07:20:57 +0000 (16:20 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Thu, 7 Feb 2019 07:20:57 +0000 (16:20 +0900)
src/UDPC_HashMap.h

index 5297e404502a59d0adc31f98c9247bf23f9a031f..73103aeb70c961e20647b4000e3c709c26429d39 100644 (file)
@@ -46,8 +46,16 @@ void UDPC_HashMap_destroy(UDPC_HashMap *hashMap);
  */
 void* UDPC_HashMap_insert(UDPC_HashMap *hm, uint32_t key, void *data);
 
+/*!
+ * \brief Removes data with the given key
+ * \return non-zero if data was successfully removed
+ */
 int UDPC_HashMap_remove(UDPC_HashMap *hm, uint32_t key);
 
+/*!
+ * \brief Returns a pointer to data with the given key
+ * \return non-NULL if data was found
+ */
 void* UDPC_HashMap_get(UDPC_HashMap *hm, uint32_t key);
 
 #endif