Changeset 1ebc1a62 in mainline for uspace/app/sbi/src/intmap.c


Ignore:
Timestamp:
2010-03-29T20:30:29Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a95310e
Parents:
5da468e
Message:

Update SBI to rev. 157.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/sbi/src/intmap.c

    r5da468e r1ebc1a62  
    2929/** @file Integer map.
    3030 *
    31  * Maps integers to pointers (void *).
     31 * Maps integers to pointers (void *). Current implementation is trivial
     32 * (linked list of key-value pairs).
    3233 */
    3334
     
    4041#include "intmap.h"
    4142
    42 /** Initialize map. */
     43/** Initialize map.
     44 *
     45 * @param intmap        Map to initialize.
     46 */
    4347void intmap_init(intmap_t *intmap)
    4448{
     
    4650}
    4751
    48 /** Set value corresponding to a key. */
     52/** Set value corresponding to a key.
     53 *
     54 * If there already exists a mapping for @a key in the map, it is
     55 * silently replaced. If @a value is @c NULL, the mapping for @a key
     56 * is removed from the map.
     57 *
     58 * @param intmap        Map.
     59 * @param key           Key (integer).
     60 * @param value         Value (must be a pointer) or @c NULL.
     61 */
    4962void intmap_set(intmap_t *intmap, int key, void *value)
    5063{
     
    8396}
    8497
    85 /** Get value corresponding to a key. */
     98/** Get value corresponding to a key.
     99 *
     100 * @param intmap        Map.
     101 * @param key           Key for which to retrieve mapping.
     102 *
     103 * @return              Value correspoding to @a key or @c NULL if no mapping
     104 *                      exists.
     105 */
    86106void *intmap_get(intmap_t *intmap, int key)
    87107{
Note: See TracChangeset for help on using the changeset viewer.