Aegis  4.25.D505
libaegis/move_list.h
Go to the documentation of this file.
00001 //
00002 //      aegis - project change supervisor
00003 //      Copyright (C) 2003-2006, 2008 Peter Miller
00004 //
00005 //      This program is free software; you can redistribute it and/or modify
00006 //      it under the terms of the GNU General Public License as published by
00007 //      the Free Software Foundation; either version 3 of the License, or
00008 //      (at your option) any later version.
00009 //
00010 //      This program is distributed in the hope that it will be useful,
00011 //      but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 //      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 //      GNU General Public License for more details.
00014 //
00015 //      You should have received a copy of the GNU General Public License
00016 //      along with this program. If not, see
00017 //      <http://www.gnu.org/licenses/>.
00018 //
00019 
00020 #ifndef AEDIST_MOVE_H
00021 #define AEDIST_MOVE_H
00022 
00023 #include <common/str.h>
00024 
00025 
00026 typedef struct move_ty move_ty;
00027 struct move_ty
00028 {
00029     string_ty       *from;
00030     string_ty       *to;
00031     int             create;
00032     int             remove;
00033 };
00034 
00038 void move_constructor(move_ty *mp, string_ty *, string_ty *);
00039 
00044 void move_destructor(move_ty *mp);
00045 
00046 
00047 typedef struct move_list_ty move_list_ty;
00048 struct move_list_ty
00049 {
00050     size_t          length;
00051     size_t          maximum;
00052     move_ty         *item;
00053 };
00054 
00059 void move_list_constructor(move_list_ty *mlp);
00060 
00065 void move_list_destructor(move_list_ty *mlp);
00066 
00071 void move_list_append_create(move_list_ty *, string_ty *, string_ty *);
00072 
00077 void move_list_append_remove(move_list_ty *, string_ty *, string_ty *);
00078 
00079 #endif // AEDIST_MOVE_H