~ubuntu-branches/debian/sid/upstart/sid

« back to all changes in this revision

Viewing changes to nih/hash.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2006-12-13 17:27:37 UTC
  • mfrom: (1.1.7 upstream)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: james.westby@ubuntu.com-20061213172737-i8969k38jl3b8ruu
Tags: 0.3.1-1
* New upstream release:
  - start, stop and status are now symlinks to initctl, not to a
    different, separate utility.
  - initctl completely rewritten to behave properly.
  - some upstart-specific options to shutdown and reboot dropped, as
    these are considered SysV-compat tools.
  - "console none" fixed.  LP: #70782.
  - improved documentation.  LP: #68805.

* shutdown and reboot moved to upstart-compat-sysv.

* Replace the /usr/share/doc/* directory in upstart-logd,
  upstart-compat-sysv, system-services and startup-tasks with a symlink to
  /usr/share/doc/upstart.  This was actually done in a previous package,
  but the migration missed.  LP: #70895.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
 * This structure represents a hash table which is more efficient for
47
47
 * looking up members than an ordinary list.
48
48
 *
49
 
 * Individual members of the hash table are #NihList members as are the
 
49
 * Individual members of the hash table are NihList members as are the
50
50
 * bins themselves, so to remove an entry from the table you can just
51
 
 * use #nih_list_remove.
 
51
 * use nih_list_remove().
52
52
 **/
53
53
typedef struct nih_hash {
54
54
        NihList        *bins;
60
60
 
61
61
NIH_BEGIN_EXTERN
62
62
 
63
 
NihHash *nih_hash_new        (size_t entries, NihKeyFunction key_function)
 
63
NihHash *nih_hash_new        (const void *parent, size_t entries,
 
64
                              NihKeyFunction key_function)
64
65
        __attribute__ ((warn_unused_result, malloc));
65
66
 
66
67
NihList *nih_hash_add        (NihHash *hash, NihList *entry);