Document arguments and remove old function prototype of LAHandlerService
authorJonathan Maw <jonathan.maw@codethink.co.uk>
Wed, 8 Aug 2012 09:54:39 +0000 (10:54 +0100)
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>
Wed, 8 Aug 2012 10:16:41 +0000 (11:16 +0100)
Previous documentation of the LAHandlerService omitted explaining
the @service arguments.

A function prototype existed in the header for the LAHandlerService and
was included in the documentation, but was never used or defined.

node-startup-controller/la-handler-service.c
node-startup-controller/la-handler-service.h

index ec7dc6b..d968c80 100644 (file)
  * 
  * It handles signals from two interfaces: 
  * 
- * 1. The #LAHandler interface which provides the %handle-register signal.
+ * 1. The #LAHandler interface which provides the "handle-register" signal.
  *    On receiving this signal it registers that systemd unit as a shutdown client with
  *    the Node State manager.
  * 
- * 2. The #ShutdownConsumer interface which provides the %handle-lifecycle-request signal.
- *    On receiving this signal it shuts down the unit corresponding to that shutdown
- *    client.
+ * 2. The #ShutdownConsumer interface which provides the "handle-lifecycle-request"
+ *    signal. On receiving this signal it shuts down the unit corresponding to that
+ *    shutdown client.
  */
 
 
@@ -616,6 +616,7 @@ la_handler_service_data_unref (LAHandlerServiceData *data)
 }
 
 
+
 /**
  * la_handler_service_new:
  * @connection: A connection to the system bus.
@@ -642,7 +643,8 @@ la_handler_service_new (GDBusConnection *connection,
 
 /**
  * la_handler_service_start:
- * @error: Return location for error or %NULL
+ * @service: A #LAHandlerService.
+ * @error:   Return location for error or %NULL.
  * 
  * Makes @service export its #LAHandler interface so that it is available to the
  * #legacy-app-handler helper binary.
@@ -668,6 +670,9 @@ la_handler_service_start (LAHandlerService *service,
 
 /**
  * la_handler_service_get_nsm_consumer:
+ * @service: A #LAHandlerService.
+ * 
+ * Retrieves the #NSMConsumer stored in @service.
  * 
  * Returns: A proxy of the Node State Manager's #NSMConsumer interface.
  */
@@ -683,6 +688,7 @@ la_handler_service_get_nsm_consumer (LAHandlerService *service)
 
 /**
  * la_handler_service_deregister_consumers:
+ * @service: A #LAHandlerService.
  * 
  * Unregisters every #ShutdownClient from the Node State Manager.
  * This method is typically used when the #LAHandlerService is about to shut down.
index 831fcca..66c8aeb 100644 (file)
@@ -34,12 +34,6 @@ LAHandlerService *la_handler_service_new                  (GDBusConnection    *c
                                                            JobManager         *job_manager) G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;
 gboolean          la_handler_service_start                (LAHandlerService   *service,
                                                            GError            **error);
-void              la_handler_service_register             (LAHandlerService   *service,
-                                                           const gchar        *unit,
-                                                           const gchar        *mode,
-                                                           guint               timeout,
-                                                           GAsyncReadyCallback callback,
-                                                           gpointer            user_data);
 NSMConsumer      *la_handler_service_get_nsm_consumer     (LAHandlerService   *service);
 void              la_handler_service_deregister_consumers (LAHandlerService   *service);