-
Committer:
Scott James Remnant
-
Date:
2007-03-02 17:06:44 UTC
-
Revision ID:
scott@netsplit.com-20070302170644-dh6hh4b723eyg02q
* init/job.h (Job): Add a unique id to the job structure.
* init/job.c (job_new): Assign an incrementing id to each new job
allocated.
(job_find_by_id): Locate a job by its unique id, sadly not very
efficient in a hash table ;-)
(job_name): New hash key function since name isn't the first entry
anymore.
(job_init): Change hash key function.
* init/tests/test_job.c (test_find_by_id): Make sure we can find a
job by its id.