haskell-pluginprocess: reformat
@@ -60,7 +60,8 @@ int elektraHaskellOpen (Plugin * handle, Key * errorKey)
int elektraHaskellClose (Plugin * handle, Key * errorKey)
{
ElektraPluginProcess * pp = elektraPluginGetData (handle);
- if (elektraPluginProcessIsParent (pp)) {
+ if (elektraPluginProcessIsParent (pp))
+ {
int result = elektraPluginProcessSend (pp, ELEKTRA_PLUGIN_CLOSE, NULL, errorKey);
if (elektraPluginProcessClose (pp)) elektraPluginSetData (handle, NULL);
return result;
@@ -82,9 +83,9 @@ int elektraHaskellGet (Plugin * handle, KeySet * returned, Key * parentKey)
{
if (!elektraStrCmp (keyName (parentKey), "system/elektra/modules/@PLUGIN_NAME@"))
{
- KeySet * contract = ksNew (
- 30,
- keyNew ("system/elektra/modules/@PLUGIN_NAME@", KEY_VALUE, "@PLUGIN_NAME@ plugin waits for your orders", KEY_END),
+ KeySet * contract =
+ ksNew (30, keyNew ("system/elektra/modules/@PLUGIN_NAME@", KEY_VALUE, "@PLUGIN_NAME@ plugin waits for your orders",
+ KEY_END),
keyNew ("system/elektra/modules/@PLUGIN_NAME@/exports", KEY_END),
keyNew ("system/elektra/modules/@PLUGIN_NAME@/exports/open", KEY_FUNC, elektraHaskellOpen, KEY_END),
keyNew ("system/elektra/modules/@PLUGIN_NAME@/exports/close", KEY_FUNC, elektraHaskellClose, KEY_END),
