StoragedSimpleJob

StoragedSimpleJob — A simple job

Synopsis

                    StoragedSimpleJob;
StoragedSimpleJob * storaged_simple_job_new             (StoragedDaemon *daemon,
                                                         GCancellable *cancellable);
void                storaged_simple_job_complete        (StoragedSimpleJob *job,
                                                         gboolean succeess,
                                                         const gchar *message);

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.

Details

StoragedSimpleJob

typedef struct _StoragedSimpleJob StoragedSimpleJob;

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


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.

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.

job :

A StoragedSimpleJob.

succeess :

Whether the job succeeded.

message :

An error message or NULL.