Ignore:
Timestamp:
2007-01-28T13:25:49Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8e8c1a5
Parents:
1ba41c5
Message:

huge type system cleanup
remove cyclical type dependencies across multiple header files
many minor coding style fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/adt/hash_table.h

    r1ba41c5 rb3f8fb7  
    3838#include <adt/list.h>
    3939#include <arch/types.h>
    40 #include <typedefs.h>
    41 
    42 /** Hash table structure. */
    43 struct hash_table {
    44         link_t *entry;
    45         count_t entries;
    46         count_t max_keys;
    47         hash_table_operations_t *op;
    48 };
    4940
    5041/** Set of operations for hash table. */
    51 struct hash_table_operations {
     42typedef struct {
    5243        /** Hash function.
    5344         *
     
    7162         */
    7263        void (*remove_callback)(link_t *item);
    73 };
     64} hash_table_operations_t;
     65
     66/** Hash table structure. */
     67typedef struct {
     68        link_t *entry;
     69        count_t entries;
     70        count_t max_keys;
     71        hash_table_operations_t *op;
     72} hash_table_t;
    7473
    7574#define hash_table_get_instance(item, type, member)     list_get_instance((item), type, member)
Note: See TracChangeset for help on using the changeset viewer.