Commit 13f59e11 authored by Petr Pudlak's avatar Petr Pudlak
Browse files

Add a module for WConfd core functions

There are no exported functions yet, except for `echo`, which just
returns its argument back to a client.
Signed-off-by: default avatarPetr Pudlak <>
Reviewed-by: default avatarKlaus Aehlig <>
parent 12121213
......@@ -758,6 +758,7 @@ HS_LIB_SRCS = \
src/Ganeti/Utils.hs \
src/Ganeti/VCluster.hs \
src/Ganeti/WConfd/ConfigState.hs \
src/Ganeti/WConfd/Core.hs \
{-# LANGUAGE TemplateHaskell #-}
{-| The Ganeti WConfd core functions.
As TemplateHaskell require that splices be defined in a separate
module, we combine all the TemplateHaskell functionality that HTools
needs in this module (except the one for unittests).
Copyright (C) 2013 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
module Ganeti.WConfd.Core where
import Language.Haskell.TH (Name)
import Ganeti.WConfd.Monad
-- * The list of all functions exported to RPC.
-- Just a test function
echo :: String -> WConfdMonad String
echo = return
exportedFunctions :: [Name]
exportedFunctions = [ 'echo ]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment