1 //
2 //	aegis - project change supervisor
3 //	Copyright (C) 2001, 2003-2006, 2008 Peter Miller
4 //
5 //	This program is free software; you can redistribute it and/or modify
6 //	it under the terms of the GNU General Public License as published by
7 //	the Free Software Foundation; either version 3 of the License, or
8 //	(at your option) any later version.
9 //
10 //	This program 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
13 //	GNU General Public License for more details.
14 //
15 //	You should have received a copy of the GNU General Public License
16 //	along with this program. If not, see
17 //	<http://www.gnu.org/licenses/>.
18 //
19 
20 #include <libaegis/patch.h>
21 
22 
patch_ty()23 patch_ty::patch_ty()
24 {
25     action = (file_action_ty)-1;
26     usage = (file_usage_ty)-1;
27     patch_hunk_list_constructor(&actions);
28 }
29 
30 
~patch_ty()31 patch_ty::~patch_ty()
32 {
33     patch_hunk_list_destructor(&actions);
34 }
35 
36 
37 void
append(patch_hunk_ty * php)38 patch_ty::append(patch_hunk_ty *php)
39 {
40     patch_hunk_list_append(&actions, php);
41 }
42