[134] | 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- |
---|
| 2 | * |
---|
| 3 | * Copyright (C) 2007 William Jon McCann <mccann@jhu.edu> |
---|
| 4 | * |
---|
| 5 | * This library is free software; you can redistribute it and/or |
---|
| 6 | * modify it under the terms of the GNU Library General Public |
---|
| 7 | * License as published by the Free Software Foundation; either |
---|
| 8 | * version 2 of the License, or (at your option) any later version. |
---|
| 9 | * |
---|
| 10 | * This library is distributed in the hope that it will be useful, |
---|
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
| 13 | * Library General Public License for more details. |
---|
| 14 | * |
---|
| 15 | * You should have received a copy of the GNU Library General Public |
---|
| 16 | * License along with this library; if not, write to the |
---|
| 17 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
| 18 | * Boston, MA 02111-1307, USA. |
---|
| 19 | */ |
---|
| 20 | |
---|
| 21 | #ifndef _GDM_COMMON_H |
---|
| 22 | #define _GDM_COMMON_H |
---|
| 23 | |
---|
| 24 | #include <glib.h> |
---|
| 25 | |
---|
| 26 | #include "gdm-common-unknown-origin.h" |
---|
| 27 | |
---|
| 28 | G_BEGIN_DECLS |
---|
| 29 | |
---|
| 30 | gboolean gdm_is_version_unstable (void); |
---|
| 31 | void gdm_set_fatal_warnings_if_unstable (void); |
---|
| 32 | |
---|
| 33 | int gdm_wait_on_pid (int pid); |
---|
| 34 | int gdm_signal_pid (int pid, |
---|
| 35 | int signal); |
---|
| 36 | |
---|
| 37 | const char * gdm_make_temp_dir (char *template); |
---|
| 38 | |
---|
| 39 | gboolean gdm_string_hex_encode (const GString *source, |
---|
| 40 | int start, |
---|
| 41 | GString *dest, |
---|
| 42 | int insert_at); |
---|
| 43 | gboolean gdm_string_hex_decode (const GString *source, |
---|
| 44 | int start, |
---|
| 45 | int *end_return, |
---|
| 46 | GString *dest, |
---|
| 47 | int insert_at); |
---|
| 48 | char *gdm_generate_random_bytes (gsize size, |
---|
| 49 | GError **error); |
---|
| 50 | |
---|
| 51 | G_END_DECLS |
---|
| 52 | |
---|
| 53 | #endif /* _GDM_COMMON_H */ |
---|