Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/adt/generic_char_map.h

    r61bfc370 raaa3f33a  
    6262        }; \
    6363        \
    64         int name##_add(name##_t *, const uint8_t *, const size_t, type *); \
     64        int name##_add(name##_t *, const char *, const size_t, type *); \
    6565        int name##_count(name##_t *); \
    6666        void name##_destroy(name##_t *); \
    67         void name##_exclude(name##_t *, const uint8_t *, const size_t); \
    68         type *name##_find(name##_t *, const uint8_t *, const size_t); \
     67        void name##_exclude(name##_t *, const char *, const size_t); \
     68        type *name##_find(name##_t *, const char *, const size_t); \
    6969        int name##_initialize(name##_t *); \
    7070        int name##_is_valid(name##_t *);
     
    7474 * Should follow declaration with the same parameters.
    7575 *
    76  * @param[in] name Name of the map.
    77  * @param[in] type Inner object type.
    78  *
     76 * @param[in] name      Name of the map.
     77 * @param[in] type      Inner object type.
    7978 */
    8079#define GENERIC_CHAR_MAP_IMPLEMENT(name, type) \
    8180        GENERIC_FIELD_IMPLEMENT(name##_items, type) \
    8281        \
    83         int name##_add(name##_t *map, const uint8_t *name, const size_t length, \
     82        int name##_add(name##_t *map, const char *name, const size_t length, \
    8483             type *value) \
    8584        { \
     
    113112        } \
    114113        \
    115         void name##_exclude(name##_t *map, const uint8_t *name, \
     114        void name##_exclude(name##_t *map, const char *name, \
    116115            const size_t length) \
    117116        { \
     
    125124        } \
    126125        \
    127         type *name##_find(name##_t *map, const uint8_t *name, \
     126        type *name##_find(name##_t *map, const char *name, \
    128127            const size_t length) \
    129128        { \
Note: See TracChangeset for help on using the changeset viewer.