1 /* vi: set et sw=4 ts=4 cino=t0,(0: */
2 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
4 * This file is part of gsignond
6 * Copyright (C) 2013 Intel Corporation.
8 * Contact: Jussi Laako <jussi.laako@linux.intel.com>
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2.1 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
26 #ifndef _GSIGNOND_UTILS_H_
27 #define _GSIGNOND_UTILS_H_
34 gsignond_wipe_file (const gchar *filename);
37 gsignond_wipe_directory (const gchar *dirname);
40 gsignond_generate_nonce ();
43 gsignond_sequence_to_variant (GSequence *seq);
46 gsignond_variant_to_sequence (GVariant *var);
49 gsignond_sequence_to_array (GSequence *seq);
52 gsignond_array_to_sequence (gchar **items);
55 gsignond_copy_array_to_sequence (const gchar **items);
58 gsignond_is_host_in_domain(const gchar *host, const gchar *domain);
62 #endif /* _SGINOND_UTILS_H_ */