An object interface operation.
void intf_close(struct interface *intf, int rc)
Close an object interface.
static int sync_progress(struct interface *intf, struct job_progress *progress __unused)
Report progress.
int monojob_wait(const char *string, unsigned long timeout)
Wait for single foreground job to complete.
#define INTF_INIT(descriptor)
Initialise a static object interface.
void intf_plug_plug(struct interface *a, struct interface *b)
Plug two object interfaces together.
#define INTF_DESC_PURE(operations)
Define an object interface descriptor for a pure-interface object.
static struct interface_operation sync_intf_op[]
Synchroniser interface operations.
static struct interface_descriptor sync_intf_desc
Synchroniser interface descriptor.
#define __unused
Declare a variable or data structure as unused.
int sync(unsigned long timeout)
Wait for pending operations to complete.
static int have_pending(void)
Check if any operations are pending.
An object interface descriptor.
#define INTF_OP(op_type, object_type, op_func)
Define an object interface operation.
static struct interface sync_intf
Synchroniser.
Wait for pending operations to complete.
#define NULL
NULL pointer (VOID *)
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)