/* ply-key-file.h - key file loader * * Copyright (C) 2009 Red Hat, 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, 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 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU 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., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * Written By: Ray Strode */ #ifndef PLY_KEY_FILE_H #define PLY_KEY_FILE_H #include #include #include typedef struct _ply_key_file ply_key_file_t; #ifndef PLY_HIDE_FUNCTION_DECLARATIONS ply_key_file_t *ply_key_file_new (const char *filename); void ply_key_file_free (ply_key_file_t *key_file); bool ply_key_file_load (ply_key_file_t *key_file); bool ply_key_file_has_key (ply_key_file_t *key_file, const char *group_name, const char *key); char *ply_key_file_get_value (ply_key_file_t *key_file, const char *group_name, const char *key); #endif #endif /* PLY_KEY_FILE_H */ /* vim: set ts=4 sw=4 expandtab autoindent cindent cino={.5s,(0: */