00001 // 00002 // aegis - project change supervisor 00003 // Copyright (C) 1991-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 GONZO_H 00021 #define GONZO_H 00022 00023 #include <common/main.h> 00024 #include <libaegis/gstate.h> 00025 00026 class nstring; // forward 00027 class nstring_list; // forward 00028 class project_ty; // forward 00029 class string_list_ty; // forward 00030 00031 void gonzo_gstate_write(void); 00032 00033 void gonzo_library_append(const char *path); 00034 00035 struct string_ty *gonzo_project_home_path_from_name(struct string_ty *); 00036 void gonzo_project_list(struct string_list_ty *result); 00037 void gonzo_project_list_user(const nstring &, nstring_list &result); 00038 void gonzo_project_add(struct project_ty *); 00039 void gonzo_project_delete(struct project_ty *); 00040 void gonzo_gstate_write(void); 00041 void gonzo_gstate_lock_prepare_new(void); 00042 00043 string_ty *gonzo_lockpath_get(void); 00044 nstring gonzo_ustate_path(const nstring &project_name, 00045 const nstring &user_name); 00046 00047 void gonzo_become(void); 00048 void gonzo_become_undo(void); 00049 00050 void gonzo_report_path(struct string_list_ty *); 00051 00052 void gonzo_alias_add(struct project_ty *, string_ty *); 00053 void gonzo_alias_delete(string_ty *); 00054 void gonzo_alias_list(struct string_list_ty *); 00055 struct string_ty *gonzo_alias_to_actual(string_ty *); 00056 int gonzo_alias_acceptable(string_ty *); 00057 00058 #endif // GONZO_H