Add (and use) generic reference counter, to improve signal:noise ratio
[people/holger/gpxe.git] / src / include / gpxe / job.h
index 3adc6e1..ded6c84 100644 (file)
@@ -76,12 +76,11 @@ extern void ignore_progress ( struct job_interface *job,
  *
  * @v job              Job control interface
  * @v op               Job control interface operations
- * @v refcnt           Job control interface reference counting method
+ * @v refcnt           Containing object reference counter, or NULL
  */
 static inline void job_init ( struct job_interface *job,
-                              struct job_interface_operations *op,
-                              void ( * refcnt ) ( struct interface *intf,
-                                                  int delta ) ) {
+                             struct job_interface_operations *op,
+                             struct refcnt *refcnt ) {
        job->intf.dest = &null_job.intf;
        job->intf.refcnt = refcnt;
        job->op = op;