mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
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:
+2
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user