Streamline plugin include files plugin.h, svc.h, and helpers.h

Move utility macros from finit.h to helpers.h and continue refactoring
and streamlining of public plugin API.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2012-09-27 22:10:07 +02:00
parent ff73dab447
commit 06759d3544
6 changed files with 51 additions and 52 deletions
+2 -4
View File
@@ -23,10 +23,11 @@
*/
#include <errno.h>
#include <fcntl.h> /* O_RDONLY et al */
#include <signal.h>
#include <string.h>
#include "finit.h"
#include "helpers.h"
#include "plugin.h"
#define INIT_MAGIC 0x03091969
@@ -40,7 +41,6 @@ struct init_request {
char data[368];
};
#ifdef LISTEN_INITCTL
/* Standard reboot/shutdown utilities talk to init using /dev/initctl.
* We should check if the fifo was recreated and reopen it.
*/
@@ -109,8 +109,6 @@ PLUGIN_EXIT(plugin_exit)
plugin_unregister(&plugin);
}
#endif /* LISTEN_INITCTL */
/**
* Local Variables:
* version-control: t