Navigation Menu

Skip to content

Commit

Permalink
Refactor: lib/services: make *.h self-sufficient wrt. other includes
Browse files Browse the repository at this point in the history
Also make function declaration follow the actual definitions.
  • Loading branch information
jnpkrn committed Feb 10, 2017
1 parent ef711f9 commit 5dc4937
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/services/pcmk-dbus.h
Expand Up @@ -8,6 +8,8 @@
#ifndef PCMK_DBUS__H
# define PCMK_DBUS__H

# include <dbus/dbus.h>

# ifndef DBUS_TIMEOUT_USE_DEFAULT
# define DBUS_TIMEOUT_USE_DEFAULT -1
# endif
Expand Down
3 changes: 3 additions & 0 deletions lib/services/services_private.h
Expand Up @@ -19,6 +19,9 @@
#ifndef SERVICES_PRIVATE__H
# define SERVICES_PRIVATE__H

# include <glib.h>
# include "crm/services.h"

#if SUPPORT_DBUS
# include <dbus/dbus.h>
#endif
Expand Down
5 changes: 4 additions & 1 deletion lib/services/systemd.h
Expand Up @@ -19,8 +19,11 @@
#ifndef SYSTEMD__H
# define SYSTEMD__H

# include <glib.h>
# include "crm/services.h"

G_GNUC_INTERNAL GList *systemd_unit_listall(void);
G_GNUC_INTERNAL int systemd_unit_exec(svc_action_t * op);
G_GNUC_INTERNAL gboolean systemd_unit_exec(svc_action_t * op);
G_GNUC_INTERNAL gboolean systemd_unit_exists(const gchar * name);
G_GNUC_INTERNAL gboolean systemd_unit_running(const gchar * name);
G_GNUC_INTERNAL void systemd_cleanup(void);
Expand Down
2 changes: 1 addition & 1 deletion lib/services/upstart.h
Expand Up @@ -23,7 +23,7 @@
# include "crm/services.h"

G_GNUC_INTERNAL GList *upstart_job_listall(void);
G_GNUC_INTERNAL int upstart_job_exec(svc_action_t * op, gboolean synchronous);
G_GNUC_INTERNAL gboolean upstart_job_exec(svc_action_t * op, gboolean synchronous);
G_GNUC_INTERNAL gboolean upstart_job_exists(const gchar * name);
G_GNUC_INTERNAL gboolean upstart_job_running(const gchar * name);
G_GNUC_INTERNAL void upstart_cleanup(void);
Expand Down

0 comments on commit 5dc4937

Please sign in to comment.