StoragedSimpleJob

StoragedSimpleJob — A simple job

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GDBusInterfaceSkeleton
        ╰── StoragedJobSkeleton
            ╰── StoragedBaseJob
                ╰── StoragedSimpleJob

Implemented Interfaces

StoragedSimpleJob implements GDBusInterface and StoragedJob.

Description

This type provides an implementation of the StoragedJob interface for simple jobs.

Functions

storaged_simple_job_new ()

StoragedSimpleJob *
storaged_simple_job_new (StoragedDaemon *daemon,
                         GCancellable *cancellable);

Creates a new StoragedSimpleJob instance.

Call storaged_simple_job_complete() to compelte the returned job.

Parameters

daemon

A StoragedDaemon.

 

cancellable

A GCancellable or NULL.

 

Returns

A new StoragedSimpleJob. Free with g_object_unref().


storaged_simple_job_complete ()

void
storaged_simple_job_complete (StoragedSimpleJob *job,
                              gboolean succeess,
                              const gchar *message);

Completes job .

Parameters

job

A StoragedSimpleJob.

 

succeess

Whether the job succeeded.

 

message

An error message or NULL.

 

Types and Values

StoragedSimpleJob

typedef struct _StoragedSimpleJob StoragedSimpleJob;

The StoragedSimpleJob structure contains only private data and should only be accessed using the provided API.