Aegis  4.25.D505
/home/archives/aegis/branch.4/branch.25/delta28933.505/libaegis/change/attributes.h
Go to the documentation of this file.
00001 //
00002 //      aegis - project change supervisor
00003 //      Copyright (C) 2000-2003, 2005-2008, 2011, 2012 Peter Miller
00004 //      Copyright (C) 2008 Walter Franzini
00005 //
00006 //      This program is free software; you can redistribute it and/or modify
00007 //      it under the terms of the GNU General Public License as published by
00008 //      the Free Software Foundation; either version 3 of the License, or
00009 //      (at your option) any later version.
00010 //
00011 //      This program is distributed in the hope that it will be useful,
00012 //      but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 //      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 //      GNU General Public License for more details.
00015 //
00016 //      You should have received a copy of the GNU General Public License
00017 //      along with this program. If not, see
00018 //      <http://www.gnu.org/licenses/>.
00019 //
00020 
00021 #ifndef LIBAEGIS_CHANGE_ATTRIBUTES_H
00022 #define LIBAEGIS_CHANGE_ATTRIBUTES_H
00023 
00024 #include <libaegis/change.h>
00025 
00026 struct cattr_ty;
00027 struct cstate_ty;
00028 struct pconf_ty;
00029 struct project;
00030 struct string_ty;
00031 
00032 void change_attributes_default(cattr_ty *, project *, struct pconf_ty *);
00033 void change_attributes_copy(struct cattr_ty *, cstate_ty *);
00034 void change_attributes_verify(string_ty *, cattr_ty *);
00035 void change_attributes_edit(cattr_ty **, int);
00036 
00050 void change_attributes_append(cstate_ty *cs, const char *name,
00051     const char *value);
00052 
00065 string_ty *change_attributes_find(change::pointer cp, string_ty *name);
00066 
00079 string_ty *change_attributes_find(change::pointer cp, const char *name);
00080 
00097 bool change_attributes_find_boolean(change::pointer cp, const char *name,
00098     bool default_value = false);
00099 
00107 void change_attributes_fixup(cattr_ty *cap);
00108 
00109 #endif // LIBAEGIS_CHANGE_ATTRIBUTES_H
00110 // vim: set ts=8 sw=4 et :